Skip to content

Massive refactoring #42

Massive refactoring

Massive refactoring #42

GitHub Actions / XUnit Tests failed Sep 18, 2024 in 0s

16 passed, 1 failed and 0 skipped

Tests failed

❌ /home/runner/work/libplanet-console/libplanet-console/test-results.trx

17 tests were completed in 11s with 16 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
LibplanetConsole.Consoles.Tests.ProcessTest 16✅ 1❌ 6s

❌ LibplanetConsole.Consoles.Tests.ProcessTest

✅ Run_Dotnet_ThrowTest
✅ Run_DotnetHelp_Test
✅ Run_DotnetHelp_Twice_Test
✅ Run_Runtime_InvalidArgs_ThrowTest
✅ Run_Runtime_Test
✅ Run_Runtime_Timeout_ThrowTest
✅ Run_ThrowTest
✅ Run_Twice_ThrowTest
✅ RunAsync_Dotnet_ThrowTestAsync
✅ RunAsync_DotnetHelp_TestAsync
✅ RunAsync_DotnetHelp_Twice_TestAsync
✅ RunAsync_Runtime_InvalidArgs_ThrowTestAsync
✅ RunAsync_Runtime_TestAsync
❌ RunAsync_Runtime_Timeout_ThrowTestAsync
	Assert.Throws() Failure
	Expected: typeof(System.OperationCanceledException)
	Actual:   typeof(System.Threading.Tasks.TaskCanceledException): A task was canceled.
	---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
✅ RunAsync_TestId_TestAsync
✅ RunAsync_ThrowTestAsync
✅ RunAsync_Twice_ThrowTestAsync

Annotations

Check failure on line 132 in src/console/LibplanetConsole.Consoles/ProcessBase.cs

See this annotation in the file changed.

@github-actions github-actions / XUnit Tests

LibplanetConsole.Consoles.Tests.ProcessTest ► RunAsync_Runtime_Timeout_ThrowTestAsync

Failed test found in:
  /home/runner/work/libplanet-console/libplanet-console/test-results.trx
Error:
  Assert.Throws() Failure
  Expected: typeof(System.OperationCanceledException)
  Actual:   typeof(System.Threading.Tasks.TaskCanceledException): A task was canceled.
  ---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
Raw output
Assert.Throws() Failure
Expected: typeof(System.OperationCanceledException)
Actual:   typeof(System.Threading.Tasks.TaskCanceledException): A task was canceled.
---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
   at System.Diagnostics.Process.WaitForExitAsync(CancellationToken cancellationToken)
   at LibplanetConsole.Consoles.ProcessBase.RunAsync(CancellationToken cancellationToken) in /home/runner/work/libplanet-console/libplanet-console/src/console/LibplanetConsole.Consoles/ProcessBase.cs:line 132
----- Inner Stack Trace -----
   at System.Diagnostics.Process.WaitForExitAsync(CancellationToken cancellationToken)
   at LibplanetConsole.Consoles.ProcessBase.RunAsync(CancellationToken cancellationToken) in /home/runner/work/libplanet-console/libplanet-console/src/console/LibplanetConsole.Consoles/ProcessBase.cs:line 132