From 57aae384ec5d0faac3fc771e1a580f9ea0fc6779 Mon Sep 17 00:00:00 2001 From: HuangYi Date: Tue, 15 Mar 2022 11:52:18 +0800 Subject: [PATCH] update unit test, the single node chain is expected to halt --- cmd/tendermint/commands/rollback_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tendermint/commands/rollback_test.go b/cmd/tendermint/commands/rollback_test.go index 189329468..724011188 100644 --- a/cmd/tendermint/commands/rollback_test.go +++ b/cmd/tendermint/commands/rollback_test.go @@ -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 } }