Skip to content

Commit 98a635c

Browse files
committed
attempt with await
1 parent dbd0db0 commit 98a635c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/NRedisStack.Tests/Search/SearchTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3441,7 +3441,7 @@ public void TestDocumentLoad_Issue352()
34413441
/// </summary>
34423442
[SkippableTheory]
34433443
[MemberData(nameof(EndpointsFixture.Env.StandaloneOnly), MemberType = typeof(EndpointsFixture.Env))]
3444-
public void TestDocumentLoadWithDB_Issue352(string endpointId)
3444+
public async void TestDocumentLoadWithDB_Issue352(string endpointId)
34453445
{
34463446
IDatabase db = GetCleanDatabase(endpointId);
34473447
var ft = db.FT();
@@ -3494,7 +3494,7 @@ public void TestDocumentLoadWithDB_Issue352(string endpointId)
34943494
tasks.Add(Task.Run(checker));
34953495
}
34963496
Task checkTask = Task.WhenAll(tasks);
3497-
Task.WhenAny(checkTask, Task.Delay(1500)).GetAwaiter().GetResult();
3497+
await Task.WhenAny(checkTask, Task.Delay(1500));
34983498
Assert.True(checkTask.IsCompleted);
34993499
Assert.Null(checkTask.Exception);
35003500
cancelled = true;

0 commit comments

Comments
 (0)