mirror of
https://github.com/gravitational/teleport
synced 2024-10-22 02:03:24 +00:00
Merge pull request #1605 from gravitational/rjones/extra-time
Increase time allowed for tests to run.
This commit is contained in:
commit
79cf0af878
|
@ -208,9 +208,10 @@ func (s *Suite) TestLocking(c *check.C) {
|
|||
// release the lock, and the gorouting should unlock and advance i
|
||||
s.bk.ReleaseLock(lock)
|
||||
resumed := false
|
||||
for attempt := 0; attempt < 50 && !resumed; attempt++ {
|
||||
time.Sleep(time.Millisecond * 2)
|
||||
for attempt := 0; attempt < 100 && !resumed; attempt++ {
|
||||
time.Sleep(time.Millisecond * 10)
|
||||
resumed = atomic.LoadInt32(&i) > 0
|
||||
}
|
||||
c.Assert(resumed, check.Equals, true)
|
||||
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ func (s *TimeoutSuite) TestSlowOperation(c *check.C) {
|
|||
}
|
||||
|
||||
func (s *TimeoutSuite) TestNormalOperation(c *check.C) {
|
||||
client := newClient(time.Millisecond * 5)
|
||||
client := newClient(time.Millisecond * 100)
|
||||
resp, err := client.Get(s.server.URL + "/ping")
|
||||
c.Assert(err, check.IsNil)
|
||||
c.Assert(bodyText(resp), check.Equals, "pong")
|
||||
|
|
Loading…
Reference in a new issue