From 53c314b77e6b9cf6eae1b33e2da2e73ac18ae7b4 Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Mon, 8 Jan 2024 07:18:16 -0500 Subject: [PATCH] fix(market): change arguments positions when generating ResourcesList Signed-off-by: Artur Troian --- go/node/market/v1beta4/bid_test.go | 2 +- go/testutil/v1beta3/base.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go/node/market/v1beta4/bid_test.go b/go/node/market/v1beta4/bid_test.go index 4f753904..a9ee578e 100644 --- a/go/node/market/v1beta4/bid_test.go +++ b/go/node/market/v1beta4/bid_test.go @@ -34,7 +34,7 @@ func TestBid_GSpecMatch_InvalidCount(t *testing.T) { gspec := testutil.GroupSpec(t) if len(gspec.Resources) == 1 { - rl := testutil.ResourcesList(t, 1) + rl := testutil.ResourcesList(t, 2) gspec.Resources = append(gspec.Resources, rl...) } diff --git a/go/testutil/v1beta3/base.go b/go/testutil/v1beta3/base.go index 656ae253..abb75d7d 100644 --- a/go/testutil/v1beta3/base.go +++ b/go/testutil/v1beta3/base.go @@ -68,7 +68,7 @@ func RandStorageQuantity() uint64 { // ResourcesList produces an attribute list for populating a Group's // 'Resources' fields. func ResourcesList(t testing.TB, startID uint32) dtypes.ResourceUnits { - require.GreaterOrEqual(t, uint32(1), startID) + require.GreaterOrEqual(t, startID, uint32(1)) count := uint32(rand.Intn(10)) + 1