We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4453bae commit a02f5e7Copy full SHA for a02f5e7
modules/core/src/test/scala/org/scalasteward/core/io/processTest.scala
@@ -73,4 +73,10 @@ class processTest extends FunSuite {
73
assert(clue(fd) > timeout)
74
assert(clue(fd) < sleep)
75
}
76
+
77
+ test("do not wait for user input") {
78
+ // This would time out if standard input is not closed.
79
+ val obtained = slurp2(Nel.of("dd", "count=1"), 1.second).attempt.unsafeRunSync()
80
+ assert(clue(obtained).isRight)
81
+ }
82
0 commit comments