Skip to content

Commit

Permalink
REPL: fix brittle replcompletions test
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jan 19, 2025
1 parent 49afe2b commit 4a8c961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/REPL/test/replcompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ let s, c, r
REPL.REPLCompletions.next_cache_update = 0
end
c,r = test_scomplete(s)
wait(REPL.REPLCompletions.PATH_cache_task::Task) # wait for caching to complete
timedwait(()->REPL.REPLCompletions.next_cache_update != 0, 5) # wait for caching to complete
c,r = test_scomplete(s)
@test "tmp-executable" in c
@test r == 1:9
Expand Down Expand Up @@ -1221,7 +1221,7 @@ let s, c, r
REPL.REPLCompletions.next_cache_update = 0
end
c,r = test_scomplete(s)
wait(REPL.REPLCompletions.PATH_cache_task::Task) # wait for caching to complete
timedwait(()->REPL.REPLCompletions.next_cache_update != 0, 5) # wait for caching to complete
c,r = test_scomplete(s)
@test ["repl-completion"] == c
@test s[r] == "repl-completio"
Expand Down

0 comments on commit 4a8c961

Please sign in to comment.