Skip to content

Commit e3445a1

Browse files
committed
properly recover redirect_stdin after test
1 parent 4aa2c10 commit e3445a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/error_handling.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
context("Not installed") do
22
add_format(format"NotInstalled", (), ".not_installed", [:NotInstalled])
3+
stdin_copy = STDIN
34
rs, wr = redirect_stdin()
45
ref = @async save("test.not_installed")
56
println(wr, "y")
@@ -13,4 +14,6 @@ context("Not installed") do
1314
println(wr, "n") # don't install
1415
wait(ref)
1516
@fact istaskdone(ref) --> true
17+
redirect_stdin(stdin_copy)
18+
close(rs);close(wr);
1619
end

0 commit comments

Comments
 (0)