From cf433ff1f3f7dc89774d636728e5071da7937854 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Thu, 20 Nov 2025 22:10:08 -0600 Subject: [PATCH] chore(test): clean up breaks in SEvtDispatch test --- test/Event.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/Event.cpp b/test/Event.cpp index 01a9e41..9dca28f 100644 --- a/test/Event.cpp +++ b/test/Event.cpp @@ -259,6 +259,9 @@ TEST_CASE("SEvtDispatch", "[event]") { CHECK(SEvtDispatch(7357, 1, 0, &data2) == 1); CHECK(test.NumCalls() == 1); + + // CLEANUP - SEvtDestroy doesn't erase registered breaks, avoid polluting other tests + CHECK(SEvtDispatch(7357, 1, 0, &data) == 0); } SECTION("finds the correct handler among many") {