Slightly shorter timespan as we need to not hit the Travis timeout

This commit is contained in:
Jordan Brown
2020-05-22 11:38:37 -04:00
parent a401f1afa9
commit f466957007
2 changed files with 5 additions and 3 deletions
@@ -8,13 +8,15 @@ Component code is where the magic and tears of TGS are made. There are six main
- [The Watchdog](./Watchdog)
- [The configuration system](./StaticFiles)
There exist two more namespaces in here that don't fit in these 6.
There exist two more namespaces in here that don't directly fit in these 6 components.
- [Interop](./Interop) deals with the bulk of DMAPI communication (Though it's not all contained here).
- [Session](./Session) contains the classes used for actually executing DreamDaemon among other things.
- [Session](./Session) contains the classes used for actually executing DreamDaemon, sending topic requests, receiving bridge requests, among other things.
Each of these is tied under the roof of an [IInstance](./IInstance.cs) ([implementation](./Instance.cs)).
While the database represents stored instance data, in component code an instance is online, or doesn't exist.
`IInstance`s are created via the [IInstanceFactory](./IInstanceFactory.cs) ([implementation](./InstanceFactory.cs)) and are generally controlled via the [IInstanceManager](./IInstanceManager.cs) ([implementation](./InstanceManager.cs)).
Many classes in here implement [IHostedService](), `InstanceManager` being the only one that is called by the ASP.NET runtime. In the case of instances `StartAsync()` is called when an `Instance` is being brought online (from server startup or user request). The `Instance` handles calling `StartAsync()` on its various subcomponents that need it. When an `Instance` is being brought offline (from server shutdown/restart/update or user request) the same pattern is followed calling `StopAsync()`.
@@ -115,7 +115,7 @@ namespace Tgstation.Server.Tests
using var server = new TestingServer();
using var serverCts = new CancellationTokenSource();
serverCts.CancelAfter(TimeSpan.FromMinutes(10));
serverCts.CancelAfter(new TimeSpan(0, 9, 30));
var cancellationToken = serverCts.Token;
TerminateAllDDs();
var serverTask = server.Run(cancellationToken);