diff --git a/org.mixedrealitytoolkit.uxcore/Tests/Runtime/SeeItSayItLabelEnablerTests.cs b/org.mixedrealitytoolkit.uxcore/Tests/Runtime/SeeItSayItLabelEnablerTests.cs index c150b290c..f92b9b7de 100644 --- a/org.mixedrealitytoolkit.uxcore/Tests/Runtime/SeeItSayItLabelEnablerTests.cs +++ b/org.mixedrealitytoolkit.uxcore/Tests/Runtime/SeeItSayItLabelEnablerTests.cs @@ -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]