From 9ee58b6bc739554de9300e3929b45eb05e6ef182 Mon Sep 17 00:00:00 2001 From: Arthur Koucher Date: Wed, 3 Apr 2024 13:46:31 -0300 Subject: [PATCH] odb: clean cb events before connect Signed-off-by: Arthur Koucher --- src/odb/test/cpp/TestCallBacks.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/odb/test/cpp/TestCallBacks.cpp b/src/odb/test/cpp/TestCallBacks.cpp index fa6ca918dfd..808a0bef894 100644 --- a/src/odb/test/cpp/TestCallBacks.cpp +++ b/src/odb/test/cpp/TestCallBacks.cpp @@ -61,10 +61,11 @@ BOOST_AUTO_TEST_CASE(test_inst_and_iterm) BOOST_TEST(cb->events.size() == 2); BOOST_TEST(cb->events[0] == "PreMove inst i1"); BOOST_TEST(cb->events[1] == "PostMove inst i1"); + cb->clearEvents(); i1->findITerm("a")->connect(n1); - BOOST_TEST(cb->events.size() == 4); - BOOST_TEST(cb->events[2] == "PreConnect iterm to net n1"); - BOOST_TEST(cb->events[3] == "PostConnect iterm to net n1"); + BOOST_TEST(cb->events.size() == 2); + BOOST_TEST(cb->events[0] == "PreConnect iterm to net n1"); + BOOST_TEST(cb->events[1] == "PostConnect iterm to net n1"); cb->clearEvents(); i1->findITerm("a")->connect(n1); BOOST_TEST(cb->events.size() == 0);