Fix some asan issues in tests (#1741)
This commit is contained in:
parent
afbaee9093
commit
cfc9e050d4
2 changed files with 2 additions and 2 deletions
|
|
@ -716,7 +716,7 @@ TEST (node_config, required_child)
|
||||||
tree.put_child ("logging", logging_l);
|
tree.put_child ("logging", logging_l);
|
||||||
auto child_l (tree.get_required_child ("logging"));
|
auto child_l (tree.get_required_child ("logging"));
|
||||||
child_l.put<bool> ("flush", !logging1.flush);
|
child_l.put<bool> ("flush", !logging1.flush);
|
||||||
bool upgraded;
|
bool upgraded (false);
|
||||||
logging2.deserialize_json (upgraded, child_l);
|
logging2.deserialize_json (upgraded, child_l);
|
||||||
|
|
||||||
ASSERT_NE (logging1.flush, logging2.flush);
|
ASSERT_NE (logging1.flush, logging2.flush);
|
||||||
|
|
|
||||||
|
|
@ -4390,7 +4390,7 @@ TEST (rpc, wallet_history)
|
||||||
ASSERT_NE (nullptr, send);
|
ASSERT_NE (nullptr, send);
|
||||||
std::this_thread::sleep_for (std::chrono::milliseconds (1000));
|
std::this_thread::sleep_for (std::chrono::milliseconds (1000));
|
||||||
auto timestamp2 (nano::seconds_since_epoch ());
|
auto timestamp2 (nano::seconds_since_epoch ());
|
||||||
auto receive (system.wallet (0)->receive_action (static_cast<nano::send_block &> (*send), nano::test_genesis_key.pub, node0->config.receive_minimum.number ()));
|
auto receive (system.wallet (0)->receive_action (*send, nano::test_genesis_key.pub, node0->config.receive_minimum.number ()));
|
||||||
ASSERT_NE (nullptr, receive);
|
ASSERT_NE (nullptr, receive);
|
||||||
nano::keypair key;
|
nano::keypair key;
|
||||||
std::this_thread::sleep_for (std::chrono::milliseconds (1000));
|
std::this_thread::sleep_for (std::chrono::milliseconds (1000));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue