Commit 9b36a8ea authored by Nick Craver's avatar Nick Craver

Tests: ensure restoration of replication after pub/sub failure we know about

parent 43d21d08
...@@ -39,6 +39,8 @@ public async Task SubscriptionsSurviveMasterSwitchAsync(bool useSharedSocketMana ...@@ -39,6 +39,8 @@ public async Task SubscriptionsSurviveMasterSwitchAsync(bool useSharedSocketMana
{ {
using (var a = Create(allowAdmin: true, useSharedSocketManager: useSharedSocketManager)) using (var a = Create(allowAdmin: true, useSharedSocketManager: useSharedSocketManager))
using (var b = Create(allowAdmin: true, useSharedSocketManager: useSharedSocketManager)) using (var b = Create(allowAdmin: true, useSharedSocketManager: useSharedSocketManager))
{
try
{ {
// Ensure config setup // Ensure config setup
await EnsureMasterSlaveSetupAsync(a).ForAwait(); await EnsureMasterSlaveSetupAsync(a).ForAwait();
...@@ -141,6 +143,12 @@ public async Task SubscriptionsSurviveMasterSwitchAsync(bool useSharedSocketMana ...@@ -141,6 +143,12 @@ public async Task SubscriptionsSurviveMasterSwitchAsync(bool useSharedSocketMana
catch { } catch { }
} }
} }
finally
{
// Put it back, even if we fail...
await EnsureMasterSlaveSetupAsync(a);
}
}
} }
} }
} }
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