Skip to content

Commit 0e97abe

Browse files
committed
js_host_effects_test: run in cwd reads its result twice (+r2)
1 parent 443efe4 commit 0e97abe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/js_host_effects_test.bend‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def procs(+dir: String) -> IO(Unit):
122122
do IO<Unit>:
123123
r1 : P.Ran <- sh("echo hi; exit 3")
124124
C.Check.str("run status and output", ran.show(r1), "3:hi")
125-
r2 : P.Ran <- P.Proc.run("pwd", [], dir)
125+
+r2 : P.Ran <- P.Proc.run("pwd", [], dir)
126126
# the folder's own path, whatever is in front of it (Cygwin's pwd on
127127
# Windows says /cygdrive/c/tmp/... for /tmp/...)
128128
C.Check.str("run in cwd", Bool.show(Bool.and(String.starts_with(ran.show(r2), "0:"), String.ends_with(ran.show(r2), String.drop(dir, 4n)))), "True")

0 commit comments

Comments
 (0)