Skip to content

Commit 7432cad

Browse files
committed
reverted change
1 parent 06b3324 commit 7432cad

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

com.unity.netcode.gameobjects/Tests/Runtime/Transports/UnityTransportTestHelpers.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@ internal static class UnityTransportTestHelpers
1212
{
1313
// Half a second might seem like a very long time to wait for a network event, but in CI
1414
// many of the machines are underpowered (e.g. old Android devices or Macs) and there are
15-
// sometimes very high lag spikes. Mobile and console platforms are particularly sensitive
16-
// in this regard so we allow even more time for these platforms to avoid false-negative
17-
// timeouts (e.g. UnityTransportConnectionTests intermittently timing out on iOS CI).
18-
#if UNITY_IOS || UNITY_ANDROID || UNITY_SWITCH || UNITY_PS4 || UNITY_PS5 || UNITY_GAMECORE
19-
public const float MaxNetworkEventWaitTime = 2.0f;
20-
#else
15+
// sometimes very high lag spikes. PS4 and Switch are particularly sensitive in this regard
16+
// so we allow even more time for these platforms.
2117
public const float MaxNetworkEventWaitTime = 0.5f;
22-
#endif
2318

2419
// Wait for an event to appear in the given event list (must be the very next event).
2520
public static IEnumerator WaitForNetworkEvent(NetworkEvent type, List<TransportEvent> events, float timeout = MaxNetworkEventWaitTime)

0 commit comments

Comments
 (0)