Check returned height
This commit is contained in:
parent
3f0c0ad8f5
commit
6a642e33b8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue