pull/9168/head
Kirill Fedoseev 10 months ago
parent 9083380c48
commit 37e968f76c
  1. 1
      apps/block_scout_web/test/test_helper.exs
  2. 2
      apps/ethereum_jsonrpc/test/ethereum_jsonrpc/receipt_test.exs
  3. 2
      apps/explorer/config/dev.exs
  4. 4
      apps/explorer/config/prod.exs
  5. 2
      apps/explorer/config/test.exs
  6. 2
      apps/explorer/test/support/data_case.ex
  7. 1
      apps/explorer/test/test_helper.exs

@ -30,6 +30,7 @@ Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.PolygonEdge, :manual)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.PolygonZkevm, :manual)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.RSK, :manual)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.Suave, :manual)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.Beacon, :manual)
Absinthe.Test.prime(BlockScoutWeb.Schema)

@ -15,7 +15,7 @@ defmodule EthereumJSONRPC.ReceiptTest do
%{"new_key" => "new_value", "transactionHash" => "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060"}
Errors:
{:unknown_key, %{value: "new_value", key: "new_key"}}
{:unknown_key, %{key: "new_key", value: "new_value"}}
""",
fn ->
Receipt.to_elixir(%{

@ -21,6 +21,8 @@ config :explorer, Explorer.Repo.RSK, timeout: :timer.seconds(80)
config :explorer, Explorer.Repo.Suave, timeout: :timer.seconds(80)
config :explorer, Explorer.Repo.Beacon, timeout: :timer.seconds(80)
config :explorer, Explorer.Tracer, env: "dev", disabled?: true
config :logger, :explorer,

@ -32,6 +32,10 @@ config :explorer, Explorer.Repo.Suave,
prepare: :unnamed,
timeout: :timer.seconds(60)
config :explorer, Explorer.Repo.Beacon,
prepare: :unnamed,
timeout: :timer.seconds(60)
config :explorer, Explorer.Tracer, env: "production", disabled?: true
config :logger, :explorer,

@ -43,7 +43,7 @@ config :explorer, Explorer.Repo.Account,
queue_target: 1000,
log: false
for repo <- [Explorer.Repo.PolygonEdge, Explorer.Repo.PolygonZkevm, Explorer.Repo.RSK, Explorer.Repo.Suave] do
for repo <- [Explorer.Repo.PolygonEdge, Explorer.Repo.PolygonZkevm, Explorer.Repo.RSK, Explorer.Repo.Suave, Explorer.Repo.Beacon] do
config :explorer, repo,
database: "explorer_test",
hostname: "localhost",

@ -39,6 +39,7 @@ defmodule Explorer.DataCase do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Explorer.Repo.PolygonZkevm)
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Explorer.Repo.RSK)
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Explorer.Repo.Suave)
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Explorer.Repo.Beacon)
unless tags[:async] do
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo, {:shared, self()})
@ -47,6 +48,7 @@ defmodule Explorer.DataCase do
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.PolygonZkevm, {:shared, self()})
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.RSK, {:shared, self()})
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.Suave, {:shared, self()})
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.Beacon, {:shared, self()})
end
Supervisor.terminate_child(Explorer.Supervisor, Explorer.Chain.Cache.BlockNumber.child_id())

@ -17,6 +17,7 @@ Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.PolygonEdge, :auto)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.PolygonZkevm, :auto)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.RSK, :auto)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.Suave, :auto)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.Beacon, :auto)
Mox.defmock(Explorer.ExchangeRates.Source.TestSource, for: Explorer.ExchangeRates.Source)
Mox.defmock(Explorer.Market.History.Source.Price.TestSource, for: Explorer.Market.History.Source.Price)

Loading…
Cancel
Save