test: add test for MTDispatcher

This commit is contained in:
alexiscatnip
2022-08-06 02:43:06 +08:00
committed by alexiscatnip
parent 4bd557203c
commit 1d24fea490
@@ -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;
}