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 4.0 #456

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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 .github/workflows/contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ jobs:
with:
owner: AntelopeIO
repo: leap
target: 'v3.1.3'
prereleases: false
target: 'v4.0'
prereleases: true
file: 'leap-dev.*(x86_64|amd64).deb'
container-package: experimental-binaries
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion contract/tests/basic_evm_tester.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class speculative_block_starter
// object.
explicit speculative_block_starter(Tester& tester, uint32_t time_gap_sec = 0) : t(tester)
{
t.control->start_block(t.control->head_block_time() + fc::milliseconds(500 + 1000 * time_gap_sec), 0);
t.control->start_block(t.control->head_block_time() + fc::milliseconds(500 + 1000 * time_gap_sec), 0, {}, controller::block_status::incomplete);
}

speculative_block_starter(speculative_block_starter&& other) : t(other.t) { other.canceled = true; }
Expand Down
2 changes: 1 addition & 1 deletion contract/tests/mapping_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ try {

// Now actually commit the init action into a block to do further testing on top of that state in later blocks.
{
control->start_block(control->head_block_time() + fc::milliseconds(500), 0);
control->start_block(control->head_block_time() + fc::milliseconds(500), 0, {}, controller::block_status::incomplete);
BOOST_REQUIRE_EQUAL(control->pending_block_time().sec_since_epoch(), bm.genesis_timestamp);

init();
Expand Down