Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update contract unit tests to work with libtester from leap's main branch #520

Merged
merged 1 commit into from
Jun 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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