Skip to content

Commit 6be3fde

Browse files
PaulDemeulenaereEvergreen
authored andcommitted
[VFX] Restore default timeout in prefab test
Remove timeout exception about unexpectedly long enter playmode. The problem has been solved meanwhile. ![image](https://media.github.cds.internal.unity3d.com/user/42/files/7b313aea-74da-4eff-8c4f-a4a59cf9d034) ![image](https://media.github.cds.internal.unity3d.com/user/42/files/a2862506-c233-4c8c-9500-cf5fdc03d897)
1 parent fc14c66 commit 6be3fde

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

  • Tests/SRPTests/Projects/VisualEffectGraph_HDRP/Assets/AllTests/Editor/Tests

Tests/SRPTests/Projects/VisualEffectGraph_HDRP/Assets/AllTests/Editor/Tests/VFXPrefabTests.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public IEnumerator Create_Prefab_Modify_And_Expect_No_Override()
441441
[SerializeField] private GameObject m_Prefab_CreatePrefab_And_Disable_Root_Then_Modify_Exposed_Finally_Renable;
442442
private static readonly string m_Exposed_name_CreatePrefab_And_Disable_Root_Then_Modify_Exposed_Finally_Renable = "mlkj";
443443

444-
[UnityTest, Timeout(500 * 1000) /* Increase timeout due to UUM-42516 */]
444+
[UnityTest]
445445
public IEnumerator CreatePrefab_And_Disable_Root_Then_Modify_Exposed_Finally_Renable_Root()
446446
{
447447
//Cover case 1230230 : VFX parameters are not set when the gameobject is immediately deactivated and is not selected in the Hierarchy
@@ -464,11 +464,7 @@ public IEnumerator CreatePrefab_And_Disable_Root_Then_Modify_Exposed_Finally_Ren
464464

465465
m_Prefab_CreatePrefab_And_Disable_Root_Then_Modify_Exposed_Finally_Renable = prefabInstanceObject;
466466

467-
var stopWatch = new System.Diagnostics.Stopwatch();
468-
stopWatch.Start();
469467
yield return new EnterPlayMode(false);
470-
stopWatch.Stop();
471-
Debug.LogFormat("EnterPlayMode duration: {0} (see UUM-42516)", stopWatch.Elapsed);
472468

473469
var exposedExpectedValue = 43000u;
474470
var exposedName = m_Exposed_name_CreatePrefab_And_Disable_Root_Then_Modify_Exposed_Finally_Renable;
@@ -492,11 +488,7 @@ public IEnumerator CreatePrefab_And_Disable_Root_Then_Modify_Exposed_Finally_Ren
492488

493489
Assert.AreEqual(exposedExpectedValue, vfx.GetUInt(exposedName));
494490

495-
stopWatch.Start();
496491
yield return new ExitPlayMode();
497-
stopWatch.Stop();
498-
Debug.LogFormat("ExitPlayMode duration: {0} (see UUM-42516)", stopWatch.Elapsed);
499-
500492
m_Prefab_CreatePrefab_And_Disable_Root_Then_Modify_Exposed_Finally_Renable = null;
501493
}
502494

0 commit comments

Comments
 (0)