From a81d25572593f1b5990ba3599dc4914655fb5728 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Thu, 16 Mar 2023 11:59:13 +0100 Subject: [PATCH] bindings: cxx: tests: fix the test case for chip::unwatch_line_info() We need to actually trigger a line-info event before making sure the watch has been disabled. Fixes: f2245fa32c1b ("bindings: cxx: tests: add a test case for chip::unwatch_line_info()") Signed-off-by: Bartosz Golaszewski --- bindings/cxx/tests/tests-info-event.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/cxx/tests/tests-info-event.cpp b/bindings/cxx/tests/tests-info-event.cpp index ee31496..249b1e8 100644 --- a/bindings/cxx/tests/tests-info-event.cpp +++ b/bindings/cxx/tests/tests-info-event.cpp @@ -124,6 +124,8 @@ TEST_CASE("line info can be unwatched", "[info-event]") chip.unwatch_line_info(5); + request.release(); + REQUIRE_FALSE(chip.wait_info_event(::std::chrono::milliseconds(100))); } -- 2.30.2