Skip to content

Commit

Permalink
GH-985 Increase to 10s for ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Nov 12, 2024
1 parent 6a126e7 commit 78761e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unittests/eosvmoc_interrupt_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ BOOST_AUTO_TEST_CASE( wasm_interrupt_test ) { try {
auto pre_id = t.control->get_wasm_interface().get_executing_action_id();

// Use an infinite executing action. When oc compile completes it will kill the action and restart it under
// eosvmoc. That action will then fail when it hits the 5000ms deadline.
// 5000ms has to be long enough for oc compile to complete and kill the non-oc executing transaction
// eosvmoc. That action will then fail when it hits the 10000ms deadline.
// 10000ms has to be long enough for oc compile to complete and kill the non-oc executing transaction
BOOST_CHECK_THROW( push_trx( t, test_api_action<WASM_TEST_ACTION("test_checktime", "checktime_failure")>{},
0, 150, 5000, true, fc::raw::pack(10000000000000000000ULL) ),
0, 150, 10000, true, fc::raw::pack(10000000000000000000ULL) ),
deadline_exception );

auto post_id = t.control->get_wasm_interface().get_executing_action_id();

// each action uses 1 id, 2 if retried because of oc compile completion interruption
// if post_id == pre_id + 1, then likely that 5000ms above was not long enough for oc compile to complete
// if post_id == pre_id + 1, then likely that 10000ms above was not long enough for oc compile to complete
BOOST_TEST(post_id == pre_id + 2);

BOOST_REQUIRE_EQUAL( t.validate(), true );
Expand Down

0 comments on commit 78761e6

Please sign in to comment.