Skip to content

Commit

Permalink
Merge pull request #56 from nowsprinting/fix/logger_in_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuniwak authored May 11, 2024
2 parents 3569d22 + f3f44e9 commit b96596d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tests/Runtime/Agents/ParallelCompositeAgentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public async Task Run_IncludesNull_IgnoreNull()
var lastChildAgent = CreateChildAgent(500);

var sut = ScriptableObject.CreateInstance<ParallelCompositeAgent>();
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<AbstractAgent>() { firstChildAgent, null, lastChildAgent };
Expand All @@ -156,7 +156,7 @@ public async Task Run_NestingAgent_IgnoreNested()
var lastChildAgent = CreateChildAgent(500);

var sut = ScriptableObject.CreateInstance<ParallelCompositeAgent>();
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<AbstractAgent>() { firstChildAgent, sut, lastChildAgent };
Expand Down
4 changes: 2 additions & 2 deletions Tests/Runtime/Agents/SerialCompositeAgentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public async Task Run_IncludesNull_IgnoreNull()
var lastChildAgent = CreateChildAgent(500);

var sut = ScriptableObject.CreateInstance<SerialCompositeAgent>();
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<AbstractAgent>() { firstChildAgent, null, lastChildAgent };
Expand All @@ -156,7 +156,7 @@ public async Task Run_NestingAgent_IgnoreNested()
var lastChildAgent = CreateChildAgent(500);

var sut = ScriptableObject.CreateInstance<SerialCompositeAgent>();
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<AbstractAgent>() { firstChildAgent, sut, lastChildAgent };
Expand Down

0 comments on commit b96596d

Please sign in to comment.