Skip to content

Commit 29e6f72

Browse files
committed
fix(Tests): SpatialHashing setup now forces RefreshGrid in Setup
Required for running tests locally with faster environment timing - CI tests passed but local runs would fail because they run faster
1 parent eb61868 commit 29e6f72

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Assets/Mirror/Tests/Editor/InterestManagement/InterestManagementTests_SpatialHashing.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ public override void SetUp()
1919
// setup server aoi since InterestManagement Awake isn't called
2020
NetworkServer.aoi = aoi;
2121

22-
// rebuild grid once so the two connections are in there
23-
aoi.Update();
22+
// Force the grid to contain the two connections.
23+
// Do not rely on the time-gated Update() path.
24+
// NetworkTime.localTime is environment-dependent in Edit Mode tests.
25+
aoi.RefreshGrid();
2426
}
2527

2628
[TearDown]

0 commit comments

Comments
 (0)