From fbd474abe70836d81311452098b706b924744e60 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Fri, 1 Mar 2019 16:05:00 +0300 Subject: [PATCH] fix test that fails every 1st day of the month --- apps/explorer/test/explorer/chain_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer/test/explorer/chain_test.exs b/apps/explorer/test/explorer/chain_test.exs index 118a42f2f8..9f4d598593 100644 --- a/apps/explorer/test/explorer/chain_test.exs +++ b/apps/explorer/test/explorer/chain_test.exs @@ -3189,7 +3189,7 @@ defmodule Explorer.ChainTest do expected_response = [token1, token2] - |> Enum.sort(&(&1.updated_at < &2.updated_at)) + |> Enum.sort(&(Timex.to_unix(&1.updated_at) < Timex.to_unix(&2.updated_at))) |> Enum.map(& &1.contract_address_hash) assert Chain.stream_cataloged_token_contract_address_hashes([], &(&2 ++ [&1])) == {:ok, expected_response}