From e178b5957fd4b261638ed9a5c02417bb1d5baf33 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 28 Sep 2021 10:54:08 -0400 Subject: [PATCH] fix TestApp_Hash to check for latest height using abci info result --- test/e2e/tests/app_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/tests/app_test.go b/test/e2e/tests/app_test.go index afd4d2d52..57a957149 100644 --- a/test/e2e/tests/app_test.go +++ b/test/e2e/tests/app_test.go @@ -49,6 +49,9 @@ func TestApp_Hash(t *testing.T) { require.EqualValues(t, info.Response.LastBlockAppHash, block.Block.AppHash.Bytes(), "app hash does not match last block's app hash") + require.EqualValues(t, info.Response.LastBlockHeight, block.Block.Height, + "block height does not match last block's height") + status, err := client.Status(ctx) require.NoError(t, err) require.True(t, status.SyncInfo.LatestBlockHeight >= info.Response.LastBlockHeight,