slaskit
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 28s
Build and Publish / BuildAndDeploy (push) Successful in 2m23s

This commit is contained in:
matst80
2024-11-13 08:58:40 +01:00
parent c9a7113e12
commit 3615d2d7d1
4 changed files with 19 additions and 4 deletions

View File

@@ -41,8 +41,10 @@ func TestWatch(t *testing.T) {
if err != nil {
t.Errorf("Error watching: %v", err)
}
select {
case <-ch:
case m := <-ch:
t.Logf("Received watch %v", m)
case <-time.After(5 * time.Second):
t.Errorf("Timeout waiting for watch")
}