Check returned height

This commit is contained in:
Alexis Sellier 2017-08-11 13:57:38 +02:00
parent 3f0c0ad8f5
commit 6a642e33b8
1 changed files with 2 additions and 1 deletions

View File

@ -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)