From d4dd299d8082097068d3d05bef7198424fbb8dfb Mon Sep 17 00:00:00 2001 From: Visal Vijay <150381094+B2krobbery@users.noreply.github.com> Date: Wed, 22 Apr 2026 18:59:04 +0530 Subject: tests: stabilize CI by relaxing env-dependent checks and timing-sensitive assertions (#14142) * tests: relax initial colorManagementPreset expectation * tests: relax hardcoded dwindle position expectation * tests: stabilize keybind timing and relax env-dependent color checks * fix cf --- hyprtester/src/tests/main/keybinds.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'hyprtester/src/tests/main/keybinds.cpp') diff --git a/hyprtester/src/tests/main/keybinds.cpp b/hyprtester/src/tests/main/keybinds.cpp index e01edd36..dcde9839 100644 --- a/hyprtester/src/tests/main/keybinds.cpp +++ b/hyprtester/src/tests/main/keybinds.cpp @@ -214,7 +214,17 @@ static void testKeyRepeat() { } static void testRepeatRelease() { - EXPECT(checkFlag(), false); + // wait until flag becomes false (CI timing can vary) + bool ok = false; + for (int i = 0; i < 20; ++i) { + if (!checkFlag()) { + ok = true; + break; + } + std::this_thread::sleep_for(std::chrono::milliseconds(10)); + } + + EXPECT(ok, true); EXPECT(getFromSocket("/keyword binde SUPER,Y,exec,touch " + flagFile), "ok"); EXPECT(getFromSocket("/keyword input:repeat_delay 100"), "ok"); // press keybind -- cgit v1.2.3