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
18 changes: 9 additions & 9 deletions src/core/Akka.Cluster.Tests/ClusterSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,11 @@ await WithinAsync(TimeSpan.FromSeconds(10), async () =>
LeaderActions(); // Exiting --> Removed

// Member should leave even a task was cancelled
ExpectMsg<ClusterEvent.MemberRemoved>().Member.Address.Should().Be(_selfAddress);
(await ExpectMsgAsync<ClusterEvent.MemberRemoved>()).Member.Address.Should().Be(_selfAddress);

// Second task should complete (not cancelled)
await AwaitConditionAsync(() => Task.FromResult(task2.IsCompleted && !task2.IsCanceled), null, "Task should be completed, but not cancelled.");
}, cancellationToken: cts.Token);
});

// Subsequent LeaveAsync() tasks expected to complete immediately (not cancelled)
var task3 = _cluster.LeaveAsync();
Expand Down Expand Up @@ -313,7 +313,7 @@ await AwaitAssertAsync(() =>
}
finally
{
Shutdown(sys2);
await ShutdownAsync(sys2);
}
}

Expand Down Expand Up @@ -374,7 +374,7 @@ await Awaiting(async () =>
}
finally
{
Shutdown(sys);
await ShutdownAsync(sys);
}
}

Expand Down Expand Up @@ -435,7 +435,7 @@ await Awaiting(async () =>
}
finally
{
Shutdown(sys);
await ShutdownAsync(sys);
}
}

Expand Down Expand Up @@ -481,7 +481,7 @@ public async Task A_cluster_must_leave_via_CoordinatedShutdownRun()
}
finally
{
Shutdown(sys2);
await ShutdownAsync(sys2);
}
}

Expand Down Expand Up @@ -518,7 +518,7 @@ public async Task A_cluster_must_leave_via_CoordinatedShutdownRun_when_member_st
}
finally
{
Shutdown(sys2);
await ShutdownAsync(sys2);
}
}

Expand Down Expand Up @@ -552,7 +552,7 @@ public async Task A_cluster_must_terminate_ActorSystem_via_leave_CoordinatedShut
}
finally
{
Shutdown(sys2);
await ShutdownAsync(sys2);
}
}

Expand Down Expand Up @@ -585,7 +585,7 @@ public async Task A_cluster_must_terminate_ActorSystem_via_Down_CoordinatedShutd
}
finally
{
Shutdown(sys3);
await ShutdownAsync(sys3);
}
}
}
Expand Down
Loading