Skip to content

Commit

Permalink
GH-985 Update test now that id is only updated once per action call
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Nov 12, 2024
1 parent 39af386 commit 6a126e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unittests/eosvmoc_interrupt_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ BOOST_AUTO_TEST_CASE( wasm_interrupt_test ) { try {

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

// each action uses 2 ids, 4 if retried because of oc compile completion interruption
// if post_id == pre_id + 2, then likely that 3000ms above was not long enough for oc compile to complete
BOOST_TEST(post_id == pre_id + 4);
// 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
BOOST_TEST(post_id == pre_id + 2);

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

0 comments on commit 6a126e7

Please sign in to comment.