Skip to content

Commit 7e22f99

Browse files
committed
remove second sh process to have timeout waiting for the right process
1 parent a2a375d commit 7e22f99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/by-util/test_timeout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ fn test_kill_subprocess() {
163163
"10",
164164
"sh",
165165
"-c",
166-
"sh -c \"trap 'echo xyz' TERM; sleep 30\"",
166+
"trap 'echo inside_trap' TERM; sleep 30",
167167
])
168168
.fails()
169169
.code_is(124)
170-
.stdout_contains("xyz")
170+
.stdout_contains("inside_trap")
171171
.stderr_contains("Terminated");
172172
}

0 commit comments

Comments
 (0)