From acd7fb53b31200f6995a2bfad67f3c3a9286c05e Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Tue, 3 Sep 2019 11:58:11 +0300 Subject: [PATCH] fix test --- apps/explorer/test/explorer/chain_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/explorer/test/explorer/chain_test.exs b/apps/explorer/test/explorer/chain_test.exs index d9bfec58f4..d673336ef6 100644 --- a/apps/explorer/test/explorer/chain_test.exs +++ b/apps/explorer/test/explorer/chain_test.exs @@ -3914,10 +3914,10 @@ defmodule Explorer.ChainTest do today = NaiveDateTime.utc_now() past = Timex.shift(today, hours: -1) - block_now = insert(:block, timestamp: today) + block_now = insert(:block, timestamp: today, number: 1) insert(:fetched_balance, address_hash: address.hash, value: 1, block_number: block_now.number) - block_past = insert(:block, timestamp: past) + block_past = insert(:block, timestamp: past, number: 2) insert(:fetched_balance, address_hash: address.hash, value: 0, block_number: block_past.number) [balance] = Chain.address_to_balances_by_day(address.hash)