Make tests faster (#8737)
* Test changes * Make finding the test tile a little smarter
This commit is contained in:
@@ -26,6 +26,7 @@ public sealed class BureaucraticError : StationEvent
|
||||
base.Startup();
|
||||
var stationSystem = EntitySystem.Get<StationSystem>();
|
||||
var stationJobsSystem = EntitySystem.Get<StationJobsSystem>();
|
||||
if (stationSystem.Stations.Count == 0) return; // No stations
|
||||
var chosenStation = _random.Pick(stationSystem.Stations.ToList());
|
||||
var jobList = stationJobsSystem.GetJobs(chosenStation).Keys.ToList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user