From 1d24fea490e4b998f7b500f76ca05d7056cf5593 Mon Sep 17 00:00:00 2001 From: alexiscatnip Date: Wed, 3 Aug 2022 23:55:40 +0800 Subject: [PATCH] test: add test for MTDispatcher --- .../RaindropFullIntegrationTests/LoginTests.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Assets/Tests/Raindrop/RaindropFullIntegrationTests/LoginTests.cs b/Assets/Tests/Raindrop/RaindropFullIntegrationTests/LoginTests.cs index d87a383..9f7c362 100644 --- a/Assets/Tests/Raindrop/RaindropFullIntegrationTests/LoginTests.cs +++ b/Assets/Tests/Raindrop/RaindropFullIntegrationTests/LoginTests.cs @@ -41,6 +41,17 @@ namespace Raindrop.Tests.RaindropFullIntegrationTests public IEnumerator LoadScene_MainScene_IsOK() { yield return new WaitForSeconds(10); + Assert.True(UnityMainThreadDispatcher.Exists()); + Assert.Pass(); + yield break; + } + + [UnityTest] + //Added due to MT Dispatcher being unstable across scene boots. + public IEnumerator LoadScene_MainScene_IsOK_MTDispatcher() + { + yield return new WaitForSeconds(10); + Assert.True(UnityMainThreadDispatcher.Exists()); Assert.Pass(); yield break; }