Skip to content

Commit

Permalink
chore: increase sleep time on test to avoid flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveigah committed Nov 21, 2024
1 parent 9159024 commit 3962f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/support/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defmodule Klife.TestUtils do
# change. One way to avoid this, would be having pubsub
# events related to the producer system but it does not
# exists yet.
|> tap(fn _ -> Process.sleep(:timer.seconds(10)) end)
|> tap(fn _ -> Process.sleep(:timer.seconds(30)) end)
end

defp do_stop_broker(client_name, broker_id) do
Expand Down Expand Up @@ -83,7 +83,7 @@ defmodule Klife.TestUtils do
# change. One way to avoid this, would be having pubsub
# events related to the producer system but it does not
# exists yet.
|> tap(fn _ -> Process.sleep(:timer.seconds(10)) end)
|> tap(fn _ -> Process.sleep(:timer.seconds(30)) end)
end

defp do_start_broker(service_name, client_name) do
Expand Down

0 comments on commit 3962f1e

Please sign in to comment.