Skip to content

Commit 819b9e8

Browse files
committed
fix(test): mocha statesync nightly test
1 parent d15b06a commit 819b9e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/docker-e2e/e2e_state_sync_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,11 @@ func (s *CelestiaTestSuite) TestStateSyncMocha() {
204204
stateSyncClient, err := fullNode.GetRPCClient()
205205
s.Require().NoError(err, "failed to get state sync client")
206206

207+
// Wait for state sync to complete (node reaches trust height).
208+
// After state sync, the node transitions to block sync to catch up to latest height,
209+
// but we verify state sync was used via metrics.
207210
err = s.WaitForSync(ctx, stateSyncClient, stateSyncTimeout, func(info rpctypes.SyncInfo) bool {
208-
return !info.CatchingUp && info.LatestBlockHeight >= trustHeight
211+
return info.LatestBlockHeight >= trustHeight
209212
})
210213

211214
s.Require().NoError(err, "failed to wait for state sync to complete")

0 commit comments

Comments
 (0)