[#651] shard/test: Speedup Shard_Delete
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
33dc88b374
commit
dcd2966177
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