mirror of
https://github.com/containous/traefik.git
synced 2025-03-20 22:50:12 +03:00
Fatalf for timeout cases.
This commit is contained in:
parent
d63d2a8a26
commit
7674a82801
@ -264,6 +264,7 @@ func TestKvWatchTree(t *testing.T) {
|
||||
<-configChan
|
||||
close(c1) // WatchTree chans can close due to error
|
||||
case <-time.After(1 * time.Second):
|
||||
t.Fatalf("Failed to create a new WatchTree chan")
|
||||
}
|
||||
|
||||
select {
|
||||
@ -271,6 +272,7 @@ func TestKvWatchTree(t *testing.T) {
|
||||
c2 <- []*store.KVPair{}
|
||||
<-configChan
|
||||
case <-time.After(1 * time.Second):
|
||||
t.Fatalf("Failed to create a new WatchTree chan")
|
||||
}
|
||||
|
||||
select {
|
||||
|
Loading…
x
Reference in New Issue
Block a user