test ignore
parent
62ca0c6e92
commit
364b67805d
|
@ -366,27 +366,28 @@ namespace Cysharp.Threading.TasksTests
|
||||||
UniTaskScheduler.UnobservedTaskException -= action;
|
UniTaskScheduler.UnobservedTaskException -= action;
|
||||||
});
|
});
|
||||||
|
|
||||||
[UnityTest]
|
// can not run on RuntimeUnitTestToolkit so ignore...
|
||||||
public IEnumerator ThrowExceptionUnawaited() => UniTask.ToCoroutine(async () =>
|
// [UnityTest]
|
||||||
{
|
// public IEnumerator ThrowExceptionUnawaited() => UniTask.ToCoroutine(async () =>
|
||||||
LogAssert.Expect(LogType.Exception, "Exception: MyException");
|
// {
|
||||||
|
// LogAssert.Expect(LogType.Exception, "Exception: MyException");
|
||||||
|
|
||||||
#pragma warning disable 1998
|
//#pragma warning disable 1998
|
||||||
async UniTask Throw() => throw new Exception("MyException");
|
// async UniTask Throw() => throw new Exception("MyException");
|
||||||
#pragma warning restore 1998
|
//#pragma warning restore 1998
|
||||||
|
|
||||||
#pragma warning disable 4014
|
//#pragma warning disable 4014
|
||||||
Throw();
|
// Throw();
|
||||||
#pragma warning restore 4014
|
//#pragma warning restore 4014
|
||||||
|
|
||||||
await UniTask.DelayFrame(3);
|
// await UniTask.DelayFrame(3);
|
||||||
|
|
||||||
GC.Collect();
|
// GC.Collect();
|
||||||
GC.WaitForPendingFinalizers();
|
// GC.WaitForPendingFinalizers();
|
||||||
GC.Collect();
|
// GC.Collect();
|
||||||
|
|
||||||
await UniTask.DelayFrame(1);
|
// await UniTask.DelayFrame(1);
|
||||||
});
|
// });
|
||||||
|
|
||||||
async UniTask InException1()
|
async UniTask InException1()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue