pull/2182/head
Ayrat Badykov 6 years ago
parent b90f36a907
commit 5d3a2268b0
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 6
      apps/explorer/test/explorer/market/market_history_cache_test.exs
  2. 5
      apps/explorer/test/explorer/market/market_test.exs

@ -7,6 +7,12 @@ defmodule Explorer.Market.MarketHistoryCacheTest do
setup do
Supervisor.terminate_child(Explorer.Supervisor, {ConCache, MarketHistoryCache.cache_name()})
Supervisor.restart_child(Explorer.Supervisor, {ConCache, MarketHistoryCache.cache_name()})
on_exit(fn ->
Supervisor.terminate_child(Explorer.Supervisor, {ConCache, Explorer.Chain.BlocksCache.cache_name()})
Supervisor.restart_child(Explorer.Supervisor, {ConCache, Explorer.Chain.BlocksCache.cache_name()})
end)
:ok
end

@ -9,6 +9,11 @@ defmodule Explorer.MarketTest do
Supervisor.terminate_child(Explorer.Supervisor, {ConCache, Explorer.Chain.BlocksCache.cache_name()})
Supervisor.restart_child(Explorer.Supervisor, {ConCache, Explorer.Chain.BlocksCache.cache_name()})
on_exit(fn ->
Supervisor.terminate_child(Explorer.Supervisor, {ConCache, Explorer.Chain.BlocksCache.cache_name()})
Supervisor.restart_child(Explorer.Supervisor, {ConCache, Explorer.Chain.BlocksCache.cache_name()})
end)
:ok
end

Loading…
Cancel
Save