Skip to content

Commit

Permalink
Fix tests for Unity 2020 or older
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Nov 9, 2024
1 parent 4467ad0 commit 856652f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/Runtime/Agents/TimeBombAgentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public async Task Run_NotDefuse_AutopilotFailed()
Assert.That(spyTerminatable.CapturedMessage, Is.EqualTo(
"Could not receive defuse message `^Never match!$` before the UGUIMonkeyAgent terminated."));
Assert.That(spyTerminatable.CapturedStackTrace, Does.StartWith(
" at DeNA.Anjin.Agents.TimeBombAgent.Run"));
" at DeNA.Anjin.Agents.TimeBombAgent"));
Assert.That(spyTerminatable.CapturedReporting, Is.True);

LogAssert.Expect(LogType.Log, $"Enter {agent.name}.Run()");
Expand Down
2 changes: 1 addition & 1 deletion Tests/Runtime/Agents/UGUIMonkeyAgentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public async Task Run_TimeoutExceptionOccurred_AutopilotFailed()
Assert.That(spyTerminatable.CapturedMessage, Does.StartWith(
"TimeoutException: Interactive component not found in 1 seconds"));
Assert.That(spyTerminatable.CapturedStackTrace, Does.StartWith(
" at TestHelper.Monkey.Monkey.Run"));
" at TestHelper.Monkey.Monkey"));
Assert.That(spyTerminatable.CapturedReporting, Is.True);

LogAssert.Expect(LogType.Log, $"Enter {agent.name}.Run()");
Expand Down

0 comments on commit 856652f

Please sign in to comment.