fix: flaky integration tests

This commit is contained in:
Ludovic Fernandez
2020-10-09 09:32:03 +02:00
committed by GitHub
parent d2435cf43b
commit 5c853766e8
34 changed files with 160 additions and 150 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ func (s *UDPSuite) TestWRR(c *check.C) {
err := cmd.Start()
c.Assert(err, checker.IsNil)
defer cmd.Process.Kill()
defer s.killCmd(cmd)
err = try.GetRequest("http://127.0.0.1:8080/api/rawdata", 5*time.Second, try.StatusCodeIs(http.StatusOK), try.BodyContains("whoami-a"))
c.Assert(err, checker.IsNil)