From 6a642e33b8ba51fd25be2975731e8ecb60185fc8 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Fri, 11 Aug 2017 13:57:38 +0200 Subject: [PATCH] Check returned height --- client/commands/query/query_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/commands/query/query_test.go b/client/commands/query/query_test.go index 25362a4798..3fcef7781b 100644 --- a/client/commands/query/query_test.go +++ b/client/commands/query/query_test.go @@ -64,9 +64,10 @@ func TestAppProofs(t *testing.T) { // Test existing key. var data eyes.Data - bs, _, proofExists, _, err := getWithProof(k, cl, cert) + bs, height, proofExists, _, err := getWithProof(k, cl, cert) require.Nil(err, "%+v", err) require.NotNil(proofExists) + require.True(uint64(br.Height) < height) err = wire.ReadBinaryBytes(bs, &data) require.Nil(err, "%+v", err)