Commit d8426038 authored by Jeromy's avatar Jeromy Committed by Juan Batiz-Benet

make test fail instead of hang

parent 09c0deff
......@@ -431,6 +431,15 @@ func TestConnectCollision(t *testing.T) {
done <- struct{}{}
}()
<-done
<-done
timeout := time.After(time.Second * 5)
select {
case <-done:
case <-timeout:
t.Fatal("Timeout received!")
}
select {
case <-done:
case <-timeout:
t.Fatal("Timeout received!")
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment