Skip to content

Commit 0325c0f

Browse files
Minor fix for timeboost system_tests
1 parent 2469d18 commit 0325c0f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Diff for: system_tests/timeboost_test.go

+4-8
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,7 @@ func TestTimeboostExpressLaneTransactionHandlingComplex(t *testing.T) {
482482
for i := currSeq + 1; i < 1000; i++ {
483483
futureSeqTx := seqInfo.PrepareTx("Alice", "Owner", seqInfo.TransferGas, big.NewInt(1), nil)
484484
bobExpressLaneTxs = append(bobExpressLaneTxs, futureSeqTx)
485-
go func(tx *types.Transaction, seqNum uint64) {
486-
err := bobExpressLaneClient.SendTransactionWithSequence(ctx, tx, seqNum)
487-
t.Logf("got error for tx: hash-%s, seqNum-%d, err-%s", tx.Hash(), seqNum, err.Error())
488-
}(futureSeqTx, i)
485+
Require(t, bobExpressLaneClient.QueueTransactionWithSequence(ctx, futureSeqTx, i))
489486
}
490487

491488
// Alice will win the auction for next round = x+1
@@ -495,7 +492,7 @@ func TestTimeboostExpressLaneTransactionHandlingComplex(t *testing.T) {
495492

496493
Require(t, bobExpressLaneClient.SendTransactionWithSequence(ctx, unblockingTx, currSeq)) // the unblockingTx itself should ideally pass, but the released 1000 txs shouldn't affect the round for which alice has won the bid for
497494

498-
time.Sleep(500 * time.Millisecond) // Wait for controller change after the current round's end
495+
time.Sleep(roundTimingInfo.TimeTilNextRound()) // Wait for controller change after the current round's end
499496

500497
// Check that Alice's tx gets priority since she's the controller
501498
verifyControllerAdvantage(t, ctx, seqClient, aliceExpressLaneClient, seqInfo, "Alice", "Bob")
@@ -667,9 +664,8 @@ func TestTimeboostBulkBlockMetadataFetcher(t *testing.T) {
667664

668665
builder := NewNodeBuilder(ctx).DefaultConfig(t, true)
669666
builder.nodeConfig.TransactionStreamer.TrackBlockMetadataFrom = 1
670-
httpConfig := genericconf.HTTPConfigDefault
671-
httpConfig.Addr = "127.0.0.1"
672-
httpConfig.Apply(builder.l2StackConfig)
667+
builder.l2StackConfig.HTTPHost = "localhost"
668+
builder.l2StackConfig.HTTPModules = []string{"eth", "arb"}
673669
builder.execConfig.BlockMetadataApiCacheSize = 0 // Caching is disabled
674670
cleanupSeq := builder.Build(t)
675671
defer cleanupSeq()

0 commit comments

Comments
 (0)