Skip to content

Commit

Permalink
chore: add sleep to prevent flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveigah committed May 18, 2024
1 parent 2244e58 commit f8db17f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/support/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ defmodule Klife.TestUtils do

:ok = PubSub.unsubscribe({:cluster_change, cluster_name})

Process.sleep(10)
result
end)
|> Task.await(15_000)
Expand Down Expand Up @@ -98,6 +99,7 @@ defmodule Klife.TestUtils do

:ok = PubSub.unsubscribe({:cluster_change, cluster_name})

Process.sleep(10)
result
end)
|> Task.await(25_000)
Expand Down

0 comments on commit f8db17f

Please sign in to comment.