Skip to content

Commit

Permalink
Fix one last test on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Apr 12, 2024
1 parent 6b2b632 commit 2350791
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LibChorusTests/utilities/ProcessStreamTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ public void DoesNotTimeoutIfFinishedInTime()
process.Start();
var readReturnCode = ps.Read(ref process, 10);
Assert.That(ps.StandardOutput, Does.Contain("test"));
Assert.That(ps.StandardError, Is.Not.Empty); //should not be empty because waitfor gives an error
if (Platform.IsUnix) {
Assert.That(ps.StandardError?.TrimEnd(), Is.Null.Or.Empty); //should be empty because sleep does not give an error
} else {
Assert.That(ps.StandardError, Is.Not.Null.Or.Empty); //should not be empty because waitfor gives an error
}
Assert.AreEqual(1, readReturnCode);
process.WaitForExit();
}
Expand Down

0 comments on commit 2350791

Please sign in to comment.