Skip to content

Commit eddcf29

Browse files
committed
TEST: Avoid non-termination if there is an error.
1 parent 19e23a6 commit eddcf29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_proxy.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234

235235
stop_socks_server(Port) :-
236236
socks_control(Port, ThreadId, ControlWrite),
237-
thread_wait(socks_waiting(ThreadId), []),
237+
ignore(thread_wait(socks_waiting(ThreadId), [timeout(5)])),
238238
retract(socks_control(Port, ThreadId, ControlWrite)),
239239
thread_property(ThreadId, id(_0Id)),
240240
debug(stop, 'Stopping socks server ~p=~p ...', [ThreadId,_0Id]),

0 commit comments

Comments
 (0)