mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 13:41:36 +00:00
Add tests simulating an evil server
Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
This commit is contained in:
committed by
Derek McGowan
parent
871d2b96ed
commit
268fa5af47
@@ -1267,17 +1267,6 @@ func setupNotary(c *check.C) *testNotary {
|
||||
c.Fatal(err)
|
||||
}
|
||||
|
||||
// Wait for notary to be ready to serve requests.
|
||||
for i := 1; i <= 5; i++ {
|
||||
if err = ts.Ping(); err == nil {
|
||||
break
|
||||
}
|
||||
time.Sleep(10 * time.Millisecond * time.Duration(i*i))
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
c.Fatalf("Timeout waiting for test notary to become available: %s", err)
|
||||
}
|
||||
return ts
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user