Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@johnspade
Copy link
Contributor

We get this error in our tests with ZIO 2.0.15 (it's flaky):

Exception in thread "zio-fiber-29" java.io.FileNotFoundException: target/test-reports-zio/spec.FQDN_debug.txt (No such file or directory)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
    at scala.io.Source$.fromFile(Source.scala:94)
    at scala.io.Source$.fromFile(Source.scala:79)
    at scala.io.Source$.fromFile(Source.scala:57)
    at zio.test.TestDebug$.$anonfun$removeLine$1(TestDebug.scala:69)
    at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
    at zio.test.TestDebug.removeLine(TestDebug.scala:68)
    at zio.test.TestDebugFileLock.updateFile(TestDebugFileLock.scala:12)
    at zio.test.TestOutput.TestOutputLive.printOrQueue(TestOutput.scala:116)

Should the debug.txt file even be created in user projects? Could you suggest a better way to fix this error?

Relevant issue: #8079

@adamgfraser @swoogles

@johnspade johnspade marked this pull request as ready for review June 13, 2023 17:47
@adamgfraser
Copy link
Contributor

Going to merge this now to fix the immediately issue but agree this could use more of a root cause analysis.

@swoogles Can you take a look?

@adamgfraser adamgfraser merged commit 2c92bcf into zio:series/2.x Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants