From 6d65f7121e5f5ffbc55989afc45527f7d3ee4653 Mon Sep 17 00:00:00 2001 From: Pavel Gross Date: Thu, 25 Jul 2024 14:37:23 +0300 Subject: [PATCH] [#19] Client: Use specific classes for search Signed-off-by: Pavel Gross --- src/FrostFS.SDK.Tests/SmokeTests.cs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/FrostFS.SDK.Tests/SmokeTests.cs b/src/FrostFS.SDK.Tests/SmokeTests.cs index 795941c..f827677 100644 --- a/src/FrostFS.SDK.Tests/SmokeTests.cs +++ b/src/FrostFS.SDK.Tests/SmokeTests.cs @@ -470,23 +470,23 @@ public class SmokeTests await CheckFilter(client, containerId, new FilterByRootObject()); - //await Cleanup(client); + await Cleanup(client); - //var deadline = DateTime.UtcNow.Add(TimeSpan.FromSeconds(5)); + var deadline = DateTime.UtcNow.Add(TimeSpan.FromSeconds(5)); - //IAsyncEnumerator? enumerator = null; - //do - //{ - // if (deadline <= DateTime.UtcNow) - // { - // Assert.Fail("Containers exist"); - // break; - // } + IAsyncEnumerator? enumerator = null; + do + { + if (deadline <= DateTime.UtcNow) + { + Assert.Fail("Containers exist"); + break; + } - // enumerator = client.ListContainersAsync().GetAsyncEnumerator(); - // await Task.Delay(500); - //} - //while (await enumerator!.MoveNextAsync()); + enumerator = client.ListContainersAsync().GetAsyncEnumerator(); + await Task.Delay(500); + } + while (await enumerator!.MoveNextAsync()); } private static byte[] GetRandomBytes(int size)