Skip to content

Commit

Permalink
test: fixing compile errors in tests for unity 6
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Feb 12, 2025
1 parent 6fd50bb commit 75ae51d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Assets/Tests/Common/Setup/TestScenes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static async UniTask UnloadAdditiveScenes()
{
var op = SceneManager.UnloadSceneAsync(scene);
if (op != null)
await op;
await op.ToUniTask();
}

// maybe test unload scene it self, if so wait for it to finish
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public IEnumerator ServerUnloadSceneAdditivelyListenerInvokedTest() => UniTask.T
sceneManager.ServerLoadSceneNormal(TestScenes.Path);

#if UNITY_EDITOR
await EditorSceneManager.LoadSceneAsyncInPlayMode("Assets/Tests/Performance/Runtime/10K/Scenes/Scene.unity", new LoadSceneParameters { loadSceneMode = LoadSceneMode.Additive });
await EditorSceneManager.LoadSceneAsyncInPlayMode("Assets/Tests/Performance/Runtime/10K/Scenes/Scene.unity", new LoadSceneParameters { loadSceneMode = LoadSceneMode.Additive }).ToUniTask();
#else
throw new System.NotSupportedException("Test not supported in player");
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class BenchmarkPerformance
public IEnumerator SetUp() => UniTask.ToCoroutine(async () =>
{
#if UNITY_EDITOR
await EditorSceneManager.LoadSceneAsyncInPlayMode(ScenePath, new LoadSceneParameters { loadSceneMode = LoadSceneMode.Additive });
await EditorSceneManager.LoadSceneAsyncInPlayMode(ScenePath, new LoadSceneParameters { loadSceneMode = LoadSceneMode.Additive }).ToUniTask();
#else
throw new System.NotSupportedException("Test not supported in player");
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class BenchmarkPerformanceLight
public IEnumerator SetUp() => UniTask.ToCoroutine(async () =>
{
#if UNITY_EDITOR
await EditorSceneManager.LoadSceneAsyncInPlayMode(ScenePath, new LoadSceneParameters { loadSceneMode = LoadSceneMode.Additive });
await EditorSceneManager.LoadSceneAsyncInPlayMode(ScenePath, new LoadSceneParameters { loadSceneMode = LoadSceneMode.Additive }).ToUniTask();
#else
throw new System.NotSupportedException("Test not supported in player");
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class MultipleClients
public IEnumerator SetUp() => UniTask.ToCoroutine(async () =>
{
#if UNITY_EDITOR
await EditorSceneManager.LoadSceneAsyncInPlayMode(ScenePath, new LoadSceneParameters { loadSceneMode = LoadSceneMode.Additive });
await EditorSceneManager.LoadSceneAsyncInPlayMode(ScenePath, new LoadSceneParameters { loadSceneMode = LoadSceneMode.Additive }).ToUniTask();
#else
throw new System.NotSupportedException("Test not supported in player");
#endif
Expand Down

0 comments on commit 75ae51d

Please sign in to comment.