mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-21 05:10:26 +00:00
fix(xugu): stabilize watchdog test
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user