From 6488951e89438e64c9b258b5287724d41070525d Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Tue, 9 Jul 2024 18:21:16 +0300 Subject: [PATCH] Fix flickering transaction_estimated_count/1 test (#10403) --- apps/explorer/test/explorer/chain_test.exs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/explorer/test/explorer/chain_test.exs b/apps/explorer/test/explorer/chain_test.exs index 78dd9085d6..482d520c63 100644 --- a/apps/explorer/test/explorer/chain_test.exs +++ b/apps/explorer/test/explorer/chain_test.exs @@ -2221,6 +2221,12 @@ defmodule Explorer.ChainTest do end describe "transaction_estimated_count/1" do + setup do + Supervisor.terminate_child(Explorer.Supervisor, Explorer.Chain.Cache.Transaction.child_id()) + Supervisor.restart_child(Explorer.Supervisor, Explorer.Chain.Cache.Transaction.child_id()) + :ok + end + test "returns integer" do assert is_integer(TransactionCache.estimated_count()) end