summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/keybinds.cpp
diff options
context:
space:
mode:
authorVisal Vijay <150381094+B2krobbery@users.noreply.github.com>2026-04-22 18:59:04 +0530
committerGitHub <noreply@github.com>2026-04-22 14:29:04 +0100
commitd4dd299d8082097068d3d05bef7198424fbb8dfb (patch)
treed3f1fcf19ca1e9f55d4865b50f605e3720868d06 /hyprtester/src/tests/main/keybinds.cpp
parent019dac7a0560145d7a557005a21a7fe48ecabe3e (diff)
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
Diffstat (limited to 'hyprtester/src/tests/main/keybinds.cpp')
-rw-r--r--hyprtester/src/tests/main/keybinds.cpp12
1 files changed, 11 insertions, 1 deletions
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