mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 05:56:58 +01:00
I think this is the key solution to the race condition we were missing
This commit is contained in:
@@ -6,6 +6,7 @@ using Microsoft.Extensions.Logging;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
using Tgstation.Server.Host.Configuration;
|
||||
using Tgstation.Server.Host.Core;
|
||||
|
||||
namespace Tgstation.Server.Host.Swarm.Tests
|
||||
{
|
||||
@@ -176,6 +177,9 @@ namespace Tgstation.Server.Host.Swarm.Tests
|
||||
|
||||
TestableSwarmNode.Link(controller, node1);
|
||||
|
||||
controller.UpdateResult = ServerUpdateResult.UpdateInProgress;
|
||||
node1.UpdateResult = ServerUpdateResult.UpdateInProgress;
|
||||
|
||||
Assert.AreEqual(SwarmRegistrationResult.Success, await controller.TryInit());
|
||||
Assert.AreEqual(SwarmRegistrationResult.Success, await node1.TryInit());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user