Skip to content

Commit

Permalink
fix(market): change arguments positions when generating ResourcesList (
Browse files Browse the repository at this point in the history
…#107)

Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored Jan 8, 2024
1 parent d3284c5 commit 8db1f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/node/market/v1beta4/bid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}

Expand Down
2 changes: 1 addition & 1 deletion go/testutil/v1beta3/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8db1f59

Please sign in to comment.