Fix flaky TestChainExportImportFull

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-10-23 21:45:08 +02:00
parent 8124fe98c7
commit c7e6c8eacc
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -126,7 +126,7 @@ func TestChainExportImportFull(t *testing.T) {
}
buf := new(bytes.Buffer)
if err := cg.ChainStore().Export(context.TODO(), last, 100, false, buf); err != nil {
if err := cg.ChainStore().Export(context.TODO(), last, last.Height(), false, buf); err != nil {
t.Fatal(err)
}