File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
com.unity.netcode.adapter.utp/Tests/Runtime/Helpers Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,10 @@ namespace Unity.Netcode.UTP.RuntimeTests
9
9
{
10
10
public static class RuntimeTestsHelpers
11
11
{
12
- // 50ms should be plenty enough for any network interaction to occur (even roundtrips).
13
- #if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX || UNITY_ANDROID
14
- public const float MaxNetworkEventWaitTime = 0.35f ;
15
- #else
16
- public const float MaxNetworkEventWaitTime = 0.15f ;
17
- #endif
12
+ // Half a second might seem like a very long time to wait for a network event, but in CI
13
+ // many of the machines are underpowered (e.g. old Android devices or Macs) and there are
14
+ // sometimes lag spikes that cause can cause delays upwards of 300ms.
15
+ public const float MaxNetworkEventWaitTime = 0.5f ;
18
16
19
17
// Wait for an event to appear in the given event list (must be the very next event).
20
18
public static IEnumerator WaitForNetworkEvent ( NetworkEvent type , List < TransportEvent > events )
You can’t perform that action at this time.
0 commit comments