Make tests faster (#8737)
* Test changes * Make finding the test tile a little smarter
This commit is contained in:
@@ -53,6 +53,8 @@ public sealed partial class StationJobsSystem
|
||||
{
|
||||
DebugTools.Assert(stations.Count > 0);
|
||||
|
||||
InitializeRoundStart();
|
||||
|
||||
if (profiles.Count == 0)
|
||||
return new Dictionary<NetUserId, (string, EntityUid)>();
|
||||
|
||||
|
||||
@@ -32,8 +32,6 @@ public sealed partial class StationJobsSystem : EntitySystem
|
||||
SubscribeLocalEvent<StationJobsComponent, ComponentShutdown>(OnStationDeletion);
|
||||
SubscribeLocalEvent<PlayerJoinedLobbyEvent>(OnPlayerJoinedLobby);
|
||||
_configurationManager.OnValueChanged(CCVars.GameDisallowLateJoins, _ => UpdateJobsAvailable(), true);
|
||||
|
||||
InitializeRoundStart();
|
||||
}
|
||||
|
||||
public override void Update(float _)
|
||||
|
||||
@@ -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