slaskit
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user