[#19] Client: Use specific classes for search
All checks were successful
DCO / DCO (pull_request) Successful in 27s

Signed-off-by: Pavel Gross <p.gross@yando.com>
This commit is contained in:
Pavel Gross 2024-07-25 14:37:23 +03:00
parent b80ebfca59
commit 6d65f7121e

View file

@ -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<ContainerId>? enumerator = null;
//do
//{
// if (deadline <= DateTime.UtcNow)
// {
// Assert.Fail("Containers exist");
// break;
// }
IAsyncEnumerator<ContainerId>? 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)