Browse Source

update unit test, the single node chain is expected to halt

pull/8101/head
HuangYi 3 years ago
parent
commit
57aae384ec
No known key found for this signature in database GPG Key ID: 58776091521E8B17
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cmd/tendermint/commands/rollback_test.go

+ 2
- 1
cmd/tendermint/commands/rollback_test.go View File

@ -70,12 +70,13 @@ func TestRollbackIntegration(t *testing.T) {
for {
select {
case <-ctx.Done():
t.Fatalf("failed to make progress after 20 seconds. Min height: %d", height)
return
case <-ticker.C:
status, err := client.Status(ctx)
require.NoError(t, err)
if status.SyncInfo.LatestBlockHeight > height+2 {
t.Fatalf("chain is expect to halt, because validator is not expected to sign the new blocks %d", status.SyncInfo.LatestBlockHeight)
return
}
}


Loading…
Cancel
Save