Skip to content

Commit

Permalink
Merge pull request #520 from eosnetworkfoundation/libtester_leap_main
Browse files Browse the repository at this point in the history
update contract unit tests to work with libtester from leap's main branch
  • Loading branch information
arhag authored Jun 1, 2023
2 parents 209c829 + e525377 commit 8f64939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contract/tests/mapping_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ try {
BOOST_REQUIRE(produce_blocks_until_timestamp_satisfied(timestamp_at_second_boundary));

init();
time_point_sec expected_genesis_time = control->pending_block_time(); // Rounds down to nearest second.
time_point_sec expected_genesis_time = time_point_sec(control->pending_block_time()); // Rounds down to nearest second.

time_point_sec actual_genesis_time = get_genesis_time();
ilog("Genesis time: ${time}", ("time", actual_genesis_time));
Expand All @@ -115,7 +115,7 @@ try {
BOOST_REQUIRE(produce_blocks_until_timestamp_satisfied(timestamp_not_at_second_boundary));

init();
time_point_sec expected_genesis_time = control->pending_block_time(); // Rounds down to nearest second.
time_point_sec expected_genesis_time = time_point_sec(control->pending_block_time()); // Rounds down to nearest second.

time_point_sec actual_genesis_time = get_genesis_time();
ilog("Genesis time: ${time}", ("time", actual_genesis_time));
Expand Down

0 comments on commit 8f64939

Please sign in to comment.