Skip to content

Commit

Permalink
Fix tests for unsupported machine (#593) (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonymous committed Jul 11, 2024
1 parent 8493a92 commit 5001c9b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ public IEnumerator TestAutoUpdateLabel()
Object.Destroy(testButton);
// Wait for a frame to give Unity a change to actually destroy the object
yield return null;
// The speech recognition keyword change will trigger this exception at next update when speech recognition is not supported
if (Application.isBatchMode)
{
LogAssert.Expect(LogType.Exception, new Regex("Speech recognition is not supported on this machine"));
}
}

[UnityTest]
Expand Down

0 comments on commit 5001c9b

Please sign in to comment.