aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-20 00:19:22 +0900
committerOphestra <cat@gensokyo.uk>2026-11-20 00:19:48 +0900
commit4fc31f5604e012ae3b02a18c903156d6ef1ddfe2 (patch)
tree06b8ac9aa585e8ecf28390baa2f1062a953440a5 /cmd
parentc7fb812486aef5c57823a39be3a77b17a64b72ed (diff)
internal/testsuite: notify on long sway polls
This prints a message every second for a long-running sway poll. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/hakurei/testsuite/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/hakurei/testsuite/main.go b/cmd/hakurei/testsuite/main.go
index c3cada17..7f8a14b3 100644
--- a/cmd/hakurei/testsuite/main.go
+++ b/cmd/hakurei/testsuite/main.go
@@ -503,7 +503,7 @@ func main() {
n.ID == "app.hakurei.wayland-client" &&
n.Instance == p.ID &&
n.AppID == "foot"
- })
+ }, "wayland client")
return nil
}, func(string) bool { return true }, 230,
)
@@ -549,13 +549,13 @@ func main() {
c.DirectWayland = true
c.Container.Path = prefix.Append("bin", "foot")
c.Container.Args = []string{"foot"}
- }, func(p hst.State, pid int) error {
+ }, func(_ hst.State, _ int) error {
testsuite.PollSwayWindow(ctx, &cred, func(n *testsuite.SwayNode) bool {
return n.Sandbox == "" &&
n.ID == "" &&
n.Instance == hst.ID{} &&
n.AppID == "foot"
- })
+ }, "direct wayland client")
return nil
}, func(string) bool { return true }, 230,
)