udp: replace concurrently reset timer with ticker
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
This commit is contained in:
parent
9012f2d6b1
commit
63d7ed74f1
5 changed files with 44 additions and 23 deletions
|
@ -101,7 +101,7 @@ func (s *UDPSuite) TestWRR(c *check.C) {
|
|||
|
||||
select {
|
||||
case <-stop:
|
||||
case <-time.Tick(time.Second * 5):
|
||||
case <-time.Tick(5 * time.Second):
|
||||
c.Error("Timeout")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue