setup rolling window tests

pull/2255/head
Ayrat Badykov 5 years ago
parent f713033fae
commit 2111d2ba31
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 5
      apps/ethereum_jsonrpc/test/ethereum_jsonrpc/rolling_window_test.exs

@ -10,7 +10,10 @@ defmodule EthereumJSONRPC.RollingWindowTest do
setup do
# We set `window_length` to a large time frame so that we can sweep manually to simulate
# time passing
RollingWindow.start_link([table: @table, duration: :timer.minutes(120), window_count: 3], name: RollingWindow)
{:ok, pid} =
RollingWindow.start_link([table: @table, duration: :timer.minutes(120), window_count: 3], name: RollingWindow)
on_exit(fn -> Process.exit(pid, :normal) end)
:ok
end

Loading…
Cancel
Save