Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,9 @@ public IEnumerator NetworkShowHideAroundListModify()
Debug.Log("Running HideThenShowAndRPC");
ShowHideObject.ClientIdsRpcCalledOn = new List<ulong>();
yield return HideThenShowAndRPC();
Debug.Assert(ShowHideObject.ClientIdsRpcCalledOn.Count == NumberOfClients + 1);
// Provide enough time for slower systems or VM systems possibly under a heavy load could fail on this test
yield return WaitForConditionOrTimeOut(() => ShowHideObject.ClientIdsRpcCalledOn.Count == NumberOfClients + 1);
AssertOnTimeout($"Timed out waiting for ClientIdsRpcCalledOn.Count ({ShowHideObject.ClientIdsRpcCalledOn.Count}) to equal ({NumberOfClients + 1})!");
break;

}
Expand Down