[#651] shard/test: Speedup Shard_Delete

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
feat/customer_objects_metric
Alexander Chuprov 2023-11-29 10:49:47 +03:00 committed by Evgenii Stratonikov
parent 2302e5d342
commit 445ebcc0e7
1 changed files with 1 additions and 0 deletions

View File

@ -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