Skip to content

Commit

Permalink
cleanup XUnit TestKit output logger (#5741)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Mar 22, 2022
1 parent 93a3d7e commit b4b390d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System;
using Akka.Actor;
using Akka.Event;
using Akka.Util;
using Xunit.Abstractions;

namespace Akka.TestKit.Xunit2.Internals
Expand Down Expand Up @@ -58,7 +59,8 @@ private void HandleLogEvent(LogEvent e)
}
catch (InvalidOperationException ie)
{
Console.WriteLine($"Received InvalidOperationException: {ie} - probably because the test had completed executing.");
StandardOutWriter.WriteLine($"Received InvalidOperationException: {ie} - probably because the test had completed executing.");
Context.Stop(Self); // shut ourselves down, can't do our job any longer
}
}
}
Expand Down

0 comments on commit b4b390d

Please sign in to comment.