Commit 12edbf52 authored by Nick Craver's avatar Nick Craver

Tests: fix pub/sub assumptions

parent 39143086
......@@ -100,7 +100,8 @@ public void SubscriptionsSurviveMasterSwitch(bool useSharedSocketManager)
Assert.Equal(2, Interlocked.Read(ref aCount));
Assert.Equal(2, Interlocked.Read(ref bCount));
Assert.Equal(4, Interlocked.CompareExchange(ref masterChanged, 0, 0));
// Expect 6, because a sees a, but b sees a and b due to replication
Assert.Equal(6, Interlocked.CompareExchange(ref masterChanged, 0, 0));
}
finally
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment