From 9e53fe28f8f5e786da54cbb1a61062553370608a Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Wed, 22 Jul 2026 10:50:15 +0800 Subject: [PATCH] fix(xugu): stabilize watchdog test --- agents/drivers/xugu/main_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agents/drivers/xugu/main_test.go b/agents/drivers/xugu/main_test.go index c8085ca58..d302d96a4 100644 --- a/agents/drivers/xugu/main_test.go +++ b/agents/drivers/xugu/main_test.go @@ -942,8 +942,8 @@ func TestXuguWatchdogFiresKillAndCancel(t *testing.T) { select { case <-killCh: - default: - t.Fatal("killSession was not called when watchdog fired") + case <-time.After(time.Second): + t.Fatal("killSession was not called after watchdog cancellation") } }