Skip to content

Commit

Permalink
Merge pull request #617 from hadashiA/ku/ignore-stopping
Browse files Browse the repository at this point in the history
Make ITickable not stop even if an exception is thrown.
  • Loading branch information
hadashiA authored Feb 11, 2024
2 parents af4c14c + af2ffa0 commit e2ab928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 4 additions & 4 deletions VContainer/Assets/Tests/Unity/EntryPointTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public IEnumerator TickableExceptionHandler()
yield return null;
yield return null;

Assert.That(handled, Is.EqualTo(1));
Assert.That(handled, Is.GreaterThanOrEqualTo(1));
}

[UnityTest]
Expand All @@ -153,7 +153,7 @@ public IEnumerator PostTickableExceptionHandler()
yield return null;
yield return null;

Assert.That(handled, Is.EqualTo(1));
Assert.That(handled, Is.GreaterThanOrEqualTo(1));
}

[UnityTest]
Expand All @@ -170,7 +170,7 @@ public IEnumerator LateTickableExceptionHandler()
yield return null;
yield return null;

Assert.That(handled, Is.EqualTo(1));
Assert.That(handled, Is.GreaterThanOrEqualTo(1));
}

[UnityTest]
Expand All @@ -187,7 +187,7 @@ public IEnumerator PostLateTickableExceptionHandler()
yield return null;
yield return null;

Assert.That(handled, Is.EqualTo(1));
Assert.That(handled, Is.GreaterThanOrEqualTo(1));
}

[UnityTest]
Expand Down
6 changes: 0 additions & 6 deletions VContainer/Assets/VContainer/Runtime/Unity/PlayerLoopItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public bool MoveNext()
{
if (exceptionHandler == null) throw;
exceptionHandler.Publish(ex);
return false;
}
}
return !disposed;
Expand Down Expand Up @@ -140,7 +139,6 @@ public bool MoveNext()
{
if (exceptionHandler == null) throw;
exceptionHandler.Publish(ex);
return false;
}
}
return !disposed;
Expand Down Expand Up @@ -176,7 +174,6 @@ public bool MoveNext()
{
if (exceptionHandler == null) throw;
exceptionHandler.Publish(ex);
return false;
}
}
return !disposed;
Expand Down Expand Up @@ -212,7 +209,6 @@ public bool MoveNext()
{
if (exceptionHandler == null) throw;
exceptionHandler.Publish(ex);
return false;
}
}
return !disposed;
Expand Down Expand Up @@ -248,7 +244,6 @@ public bool MoveNext()
{
if (exceptionHandler == null) throw;
exceptionHandler.Publish(ex);
return false;
}
}
return !disposed;
Expand Down Expand Up @@ -284,7 +279,6 @@ public bool MoveNext()
{
if (exceptionHandler == null) throw;
exceptionHandler.Publish(ex);
return false;
}
}
return !disposed;
Expand Down

0 comments on commit e2ab928

Please sign in to comment.