Fix station events system test

This commit is contained in:
DrSmugleaf
2020-10-14 23:15:49 +02:00
parent f8f1d24e28
commit 500ed7d236

View File

@@ -14,7 +14,7 @@ namespace Content.IntegrationTests.Tests.StationEvents
public async Task Test() public async Task Test()
{ {
var server = StartServerDummyTicker(); var server = StartServerDummyTicker();
server.Assert(() => server.Assert(() =>
{ {
// Idle each event once // Idle each event once
@@ -28,8 +28,8 @@ namespace Content.IntegrationTests.Tests.StationEvents
stationEvent.Shutdown(); stationEvent.Shutdown();
Assert.That(stationEvent.Occurrences == 1); Assert.That(stationEvent.Occurrences == 1);
} }
stationEventsSystem.ResettingCleanup(); stationEventsSystem.Reset();
foreach (var stationEvent in stationEventsSystem.StationEvents) foreach (var stationEvent in stationEventsSystem.StationEvents)
{ {
@@ -40,4 +40,4 @@ namespace Content.IntegrationTests.Tests.StationEvents
await server.WaitIdleAsync(); await server.WaitIdleAsync();
} }
} }
} }