Skip to content

Commit

Permalink
fix flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorv-2204 committed Apr 4, 2023
1 parent 561c512 commit 0334700
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions test/archethic_web/controllers/faucet_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ defmodule ArchethicWeb.FaucetControllerTest do
authorization_date: DateTime.utc_now()
})

start_supervised(ArchethicWeb.FaucetRateLimiter)

setup_before_send_tx()
:ok
end
Expand Down
4 changes: 2 additions & 2 deletions test/support/conn_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule ArchethicWeb.ConnCase do

alias Phoenix.ConnTest

alias ArchethicWeb.FaucetRateLimiter
# alias ArchethicWeb.FaucetRateLimiter

using do
quote do
Expand All @@ -38,7 +38,7 @@ defmodule ArchethicWeb.ConnCase do
# mark the node as bootstraped
:persistent_term.put(:archethic_up, :up)

start_supervised!(FaucetRateLimiter)
# start_supervised!(FaucetRateLimiter)
{:ok, conn: ConnTest.build_conn()}
end
end

0 comments on commit 0334700

Please sign in to comment.