Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProcessBuilder has some flaky tests #78

Open
petertrr opened this issue May 20, 2021 · 2 comments
Open

ProcessBuilder has some flaky tests #78

petertrr opened this issue May 20, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@petertrr
Copy link
Member

petertrr commented May 20, 2021

On windows (on GH actions) the test check stdout with redirection()[jvm] fails:

org.opentest4j.AssertionFailedError: expected: <[The system cannot find the path specified.]> but was: <[The system cannot find the path specified., The process tried to write to a nonexistent pipe.]>
	at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
	at org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1135)
	at kotlin.test.junit5.JUnit5Asserter.assertEquals(JUnitSupport.kt:32)
	at kotlin.test.AssertionsKt__AssertionsKt.assertEquals(Assertions.kt:63)
	at kotlin.test.AssertionsKt.assertEquals(Unknown Source)
	at kotlin.test.AssertionsKt__AssertionsKt.assertEquals$default(Assertions.kt:62)
	at kotlin.test.AssertionsKt.assertEquals$default(Unknown Source)

has been noticed for e9157ad, but the test passes after restart. Probably, needs some investigation, if it keeps occurring in the future.

@kgevorkyan
Copy link
Member

We also should focus on platform, which fails. For now it jvm, and it probably goes from ProcessBuilder from Java.
In native we have explicit check for unsuccessful pipe creation, and I think it shouldn't be reproduced in native for this reason.

@kgevorkyan
Copy link
Member

The same error for this test appeared in mingwX64 on Windows, the reason still unclear, after restart test passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants