Skip to content

Commit b4b390d

Browse files
cleanup XUnit TestKit output logger (#5741)
1 parent 93a3d7e commit b4b390d

File tree

1 file changed

+3
-1
lines changed
  • src/contrib/testkits/Akka.TestKit.Xunit2/Internals

1 file changed

+3
-1
lines changed

src/contrib/testkits/Akka.TestKit.Xunit2/Internals/Loggers.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using System;
99
using Akka.Actor;
1010
using Akka.Event;
11+
using Akka.Util;
1112
using Xunit.Abstractions;
1213

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

0 commit comments

Comments
 (0)