pull/2075/head
Ayrat Badykov 6 years ago
parent f0f83aadcf
commit bd5646c85e
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 7
      apps/block_scout_web/test/block_scout_web/controllers/block_controller_test.exs
  2. 3
      apps/block_scout_web/test/block_scout_web/features/viewing_chain_test.exs

@ -2,6 +2,13 @@ defmodule BlockScoutWeb.BlockControllerTest do
use BlockScoutWeb.ConnCase
alias Explorer.Chain.Block
setup do
Supervisor.terminate_child(Explorer.Supervisor, ConCache)
Supervisor.restart_child(Explorer.Supervisor, ConCache)
:ok
end
describe "GET show/2" do
test "with block redirects to block transactions route", %{conn: conn} do
insert(:block, number: 3)

@ -10,6 +10,9 @@ defmodule BlockScoutWeb.ViewingChainTest do
alias Explorer.Counters.AddressesWithBalanceCounter
setup do
Supervisor.terminate_child(Explorer.Supervisor, ConCache)
Supervisor.restart_child(Explorer.Supervisor, ConCache)
Enum.map(401..404, &insert(:block, number: &1))
block = insert(:block, number: 405)

Loading…
Cancel
Save