From 6a126e760d7ea282e2970a51d533117337dfc879 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Mon, 11 Nov 2024 18:29:04 -0600 Subject: [PATCH] GH-985 Update test now that id is only updated once per action call --- unittests/eosvmoc_interrupt_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unittests/eosvmoc_interrupt_tests.cpp b/unittests/eosvmoc_interrupt_tests.cpp index 0a848b4ff3..8e7d0a9205 100644 --- a/unittests/eosvmoc_interrupt_tests.cpp +++ b/unittests/eosvmoc_interrupt_tests.cpp @@ -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