Skip to content

Commit 339c71f

Browse files
REPL: fix brittle replcompletions test
1 parent 045e899 commit 339c71f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/REPL/test/replcompletions.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ let s, c, r
11871187
REPL.REPLCompletions.next_cache_update = 0
11881188
end
11891189
c,r = test_scomplete(s)
1190-
wait(REPL.REPLCompletions.PATH_cache_task::Task) # wait for caching to complete
1190+
timedwait(()->REPL.REPLCompletions.next_cache_update != 0, 5) # wait for caching to complete
11911191
c,r = test_scomplete(s)
11921192
@test "tmp-executable" in c
11931193
@test r == 1:9
@@ -1221,7 +1221,7 @@ let s, c, r
12211221
REPL.REPLCompletions.next_cache_update = 0
12221222
end
12231223
c,r = test_scomplete(s)
1224-
wait(REPL.REPLCompletions.PATH_cache_task::Task) # wait for caching to complete
1224+
timedwait(()->REPL.REPLCompletions.next_cache_update != 0, 5) # wait for caching to complete
12251225
c,r = test_scomplete(s)
12261226
@test ["repl-completion"] == c
12271227
@test s[r] == "repl-completio"

0 commit comments

Comments
 (0)