Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJeremyHe committed Dec 1, 2023
1 parent 2ae25cb commit 5aa9f23
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions system_tests/espresso_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package arbtest
import (
"context"
"encoding/json"
"fmt"
"net/http"
"testing"
"time"
Expand Down Expand Up @@ -195,8 +196,10 @@ func waitForValidated(
defer cancel()

for {
// cnt := client.ConsensusNode.BlockValidator.Validated(t)
cnt := arbutil.MessageIndex(0)
cnt := client.ConsensusNode.BlockValidator.Validated(t)
inboxCnt, _ := client.ConsensusNode.InboxTracker.GetBatchCount()
log.Info(fmt.Sprintf("validated cnt: %d", cnt))
log.Info(fmt.Sprintf("sequencer inbox cnt: %d", inboxCnt))
expected := arbutil.MessageIndex(expectedCnt)
if cnt >= expected {
return nil
Expand All @@ -221,7 +224,7 @@ func TestEspresso(t *testing.T) {

// // An initial message and message should be produced per block containing txs
expectedMsgCnt := 1 + len(block_txs_generators())
err := waitForMsgCnt(t, ctx, expectedMsgCnt+1, l2Node)
err := waitForMsgCnt(t, ctx, expectedMsgCnt, l2Node)
Require(t, err)

poster, cleanPoster := createPosterNode(ctx, t)
Expand Down

0 comments on commit 5aa9f23

Please sign in to comment.