engine: Speedup tests #827
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ func testShard(t *testing.T, hasWriteCache bool, payloadSize int) {
|
|||
require.NoError(t, err)
|
||||
|
||||
if hasWriteCache {
|
||||
sh.FlushWriteCache(context.Background(), FlushWriteCachePrm{ignoreErrors: false})
|
||||
require.Eventually(t, func() bool {
|
||||
_, err = sh.Delete(context.Background(), delPrm)
|
||||
return err == nil
|
||||
|
|
Loading…
Reference in a new issue