From e5a15d60a1688d0bf11cc32fe011a248f6d05f7b Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Thu, 12 Jul 2018 21:48:06 -0600 Subject: [PATCH] Fix rpc.wallet_ledger --- rai/core_test/rpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rai/core_test/rpc.cpp b/rai/core_test/rpc.cpp index 10e0ec2f..369dc3e5 100644 --- a/rai/core_test/rpc.cpp +++ b/rai/core_test/rpc.cpp @@ -3511,7 +3511,7 @@ TEST (rpc, wallet_ledger) std::string balance_text (accounts.second.get ("balance")); ASSERT_EQ ("340282366920938463463374607431768211355", balance_text); std::string modified_timestamp (accounts.second.get ("modified_timestamp")); - ASSERT_EQ (std::to_string (time), modified_timestamp); + ASSERT_LT (std::abs ((long)time - stol (modified_timestamp)), 5); std::string block_count (accounts.second.get ("block_count")); ASSERT_EQ ("1", block_count); boost::optional weight (accounts.second.get_optional ("weight"));