mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 23:17:20 +01:00
Re-enable control of random chat disconnections
This commit is contained in:
@@ -55,10 +55,10 @@ namespace Tgstation.Server.Tests.Live
|
||||
return mock.Object;
|
||||
}
|
||||
|
||||
public static Task RandomDisconnections(bool enabled, CancellationToken cancellationToken)
|
||||
public static void RandomDisconnections(bool enabled)
|
||||
{
|
||||
// we just don't do random disconnections when live testing these days, too many potential issue vectors like thread exhaustion on actions runners
|
||||
return Task.CompletedTask;
|
||||
enableRandomDisconnections = enabled ? 1 : 0;
|
||||
}
|
||||
|
||||
public DummyChatProvider(
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace Tgstation.Server.Tests.Live.Instance
|
||||
await TestDMApiFreeDeploy(cancellationToken);
|
||||
|
||||
// long running test likes consistency with the channels
|
||||
await DummyChatProvider.RandomDisconnections(false, cancellationToken);
|
||||
DummyChatProvider.RandomDisconnections(false);
|
||||
|
||||
await RunLongRunningTestThenUpdate(cancellationToken);
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace Tgstation.Server.Tests.Live
|
||||
|
||||
await CachingFileDownloader.InitializeAndInjectForLiveTests(default);
|
||||
|
||||
await DummyChatProvider.RandomDisconnections(true, default);
|
||||
DummyChatProvider.RandomDisconnections(true);
|
||||
ServerClientFactory.ApiClientFactory = new RateLimitRetryingApiClientFactory();
|
||||
|
||||
var connectionString = Environment.GetEnvironmentVariable("TGS_TEST_CONNECTION_STRING");
|
||||
@@ -1744,7 +1744,7 @@ namespace Tgstation.Server.Tests.Live
|
||||
await chatTestObj.RunPostTest(cancellationToken);
|
||||
await repoTest;
|
||||
|
||||
await DummyChatProvider.RandomDisconnections(false, cancellationToken);
|
||||
DummyChatProvider.RandomDisconnections(false);
|
||||
|
||||
jobsHubTest.CompleteNow();
|
||||
await jobsHubTestTask;
|
||||
|
||||
Reference in New Issue
Block a user