Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/core/Akka.Tests/Util/IndexSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Akka.TestKit;
using Akka.Util;
using Xunit;
using FluentAssertions;

namespace Akka.Tests.Util
{
Expand Down Expand Up @@ -115,7 +116,7 @@ public void Index_must_be_cleared()
}

[Fact]
public void Index_must_be_accessed_in_parallel()
public async Task Index_must_be_accessed_in_parallel()
{
var index = new Index<int,int>();

Expand Down Expand Up @@ -162,7 +163,7 @@ public void Index_must_be_accessed_in_parallel()

var tasks = Enumerable.Repeat(randomTask(), nrOfTasks).Select(Task.Run);

Task.WaitAll(tasks.ToArray(), GetTimeoutOrDefault(null));
(await Task.WhenAll(tasks.ToArray()).AwaitWithTimeout(GetTimeoutOrDefault(null))).Should().BeTrue();
}
}
}
Expand Down