From a06593e6e9495ca06c9dd19283575278e0b56c41 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 22 Jan 2019 19:17:21 +0100 Subject: [PATCH] Fix test --- freqtrade/tests/exchange/test_exchange.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/tests/exchange/test_exchange.py b/freqtrade/tests/exchange/test_exchange.py index a91b0ac56..b384035b0 100644 --- a/freqtrade/tests/exchange/test_exchange.py +++ b/freqtrade/tests/exchange/test_exchange.py @@ -912,8 +912,9 @@ def test_refresh_latest_ohlcv_inv_result(default_conf, mocker, caplog): assert type(res) is list assert len(res) == 2 - assert type(res[0]) is tuple - assert type(res[1]) is TypeError + # Test that each is in list at least once as order is not guaranteed + assert type(res[0]) is tuple or type(res[1]) is tuple + assert type(res[0]) is TypeError or type(res[1]) is TypeError assert log_has("Error loading ETH/BTC. Result was [[]].", caplog.record_tuples) assert log_has("Async code raised an exception: TypeError", caplog.record_tuples)