ignore context canceled error in window post test

This commit is contained in:
Steven Allen 2020-10-02 17:47:01 -07:00
parent 6aba3e3b94
commit f6ccab1c6c

View File

@ -158,6 +158,10 @@ func testWindowPostUpgrade(t *testing.T, b APIBuilder, blocktime time.Duration,
for ctx.Err() == nil {
build.Clock.Sleep(blocktime)
if err := sn[0].MineOne(ctx, MineNext); err != nil {
if ctx.Err() != nil {
// context was canceled, ignore the error.
return
}
t.Error(err)
}
}