diff --git a/Tests/Runtime/Agents/ParallelCompositeAgentTest.cs b/Tests/Runtime/Agents/ParallelCompositeAgentTest.cs index 1148ece..6e77b15 100644 --- a/Tests/Runtime/Agents/ParallelCompositeAgentTest.cs +++ b/Tests/Runtime/Agents/ParallelCompositeAgentTest.cs @@ -131,7 +131,7 @@ public async Task Run_IncludesNull_IgnoreNull() var lastChildAgent = CreateChildAgent(500); var sut = ScriptableObject.CreateInstance(); - sut.Logger = new ConsoleLogger(Debug.unityLogger.logHandler); + sut.Logger = Debug.unityLogger; sut.Random = new RandomFactory(0).CreateRandom(); sut.name = nameof(Run_lifespanPassed_stopAgent); sut.agents = new List() { firstChildAgent, null, lastChildAgent }; @@ -156,7 +156,7 @@ public async Task Run_NestingAgent_IgnoreNested() var lastChildAgent = CreateChildAgent(500); var sut = ScriptableObject.CreateInstance(); - sut.Logger = new ConsoleLogger(Debug.unityLogger.logHandler); + sut.Logger = Debug.unityLogger; sut.Random = new RandomFactory(0).CreateRandom(); sut.name = nameof(Run_lifespanPassed_stopAgent); sut.agents = new List() { firstChildAgent, sut, lastChildAgent }; diff --git a/Tests/Runtime/Agents/SerialCompositeAgentTest.cs b/Tests/Runtime/Agents/SerialCompositeAgentTest.cs index ef14fc4..5cf6b9d 100644 --- a/Tests/Runtime/Agents/SerialCompositeAgentTest.cs +++ b/Tests/Runtime/Agents/SerialCompositeAgentTest.cs @@ -131,7 +131,7 @@ public async Task Run_IncludesNull_IgnoreNull() var lastChildAgent = CreateChildAgent(500); var sut = ScriptableObject.CreateInstance(); - sut.Logger = new ConsoleLogger(Debug.unityLogger.logHandler); + sut.Logger = Debug.unityLogger; sut.Random = new RandomFactory(0).CreateRandom(); sut.name = nameof(Run_lifespanPassed_stopAgent); sut.agents = new List() { firstChildAgent, null, lastChildAgent }; @@ -156,7 +156,7 @@ public async Task Run_NestingAgent_IgnoreNested() var lastChildAgent = CreateChildAgent(500); var sut = ScriptableObject.CreateInstance(); - sut.Logger = new ConsoleLogger(Debug.unityLogger.logHandler); + sut.Logger = Debug.unityLogger; sut.Random = new RandomFactory(0).CreateRandom(); sut.name = nameof(Run_lifespanPassed_stopAgent); sut.agents = new List() { firstChildAgent, sut, lastChildAgent };