Skip to content

Commit f9e2865

Browse files
committed
Fix failing tests due to scheduled transactions
1 parent 1b15c77 commit f9e2865

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/tx_batching_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func Test_MultipleTransactionSubmissionsWithinSmallInterval(t *testing.T) {
257257

258258
txResults, err := emu.GetTransactionsByBlockID(block1.ID())
259259
require.NoError(t, err)
260-
require.Len(t, txResults, 1)
260+
require.True(t, len(txResults) >= 1)
261261

262262
// Assert that the 1st transaction was submitted individually.
263263
// The easiest way to check that is by making sure that the
@@ -273,7 +273,7 @@ func Test_MultipleTransactionSubmissionsWithinSmallInterval(t *testing.T) {
273273

274274
txResults, err = emu.GetTransactionsByBlockID(block2.ID())
275275
require.NoError(t, err)
276-
require.Len(t, txResults, 1)
276+
require.True(t, len(txResults) >= 1)
277277

278278
// Assert that the 2nd transaction was submitted in a batch.
279279
// The easiest way to check that is by making sure that the
@@ -371,7 +371,7 @@ func Test_MultipleTransactionSubmissionsWithinRecentInterval(t *testing.T) {
371371

372372
txResults, err := emu.GetTransactionsByBlockID(block1.ID())
373373
require.NoError(t, err)
374-
require.Len(t, txResults, 1)
374+
require.True(t, len(txResults) >= 1)
375375

376376
// Assert that the 1st transaction was submitted individually.
377377
// The easiest way to check that is by making sure that the
@@ -387,7 +387,7 @@ func Test_MultipleTransactionSubmissionsWithinRecentInterval(t *testing.T) {
387387

388388
txResults, err = emu.GetTransactionsByBlockID(block2.ID())
389389
require.NoError(t, err)
390-
require.Len(t, txResults, 1)
390+
require.True(t, len(txResults) >= 1)
391391

392392
// Assert that the 2nd transaction was submitted in a batch.
393393
// The easiest way to check that is by making sure that the
@@ -486,7 +486,7 @@ func Test_MultipleTransactionSubmissionsWithinNonRecentInterval(t *testing.T) {
486486

487487
txResults, err := emu.GetTransactionsByBlockID(block1.ID())
488488
require.NoError(t, err)
489-
require.Len(t, txResults, 1)
489+
require.True(t, len(txResults) >= 1)
490490

491491
// Assert that the 1st transaction was submitted individually.
492492
// The easiest way to check that is by making sure that the
@@ -502,7 +502,7 @@ func Test_MultipleTransactionSubmissionsWithinNonRecentInterval(t *testing.T) {
502502

503503
txResults, err = emu.GetTransactionsByBlockID(block2.ID())
504504
require.NoError(t, err)
505-
require.Len(t, txResults, 1)
505+
require.True(t, len(txResults) >= 1)
506506

507507
// Assert that the 2nd transaction was also submitted individually.
508508
// The easiest way to check that is by making sure that the

0 commit comments

Comments
 (0)