mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix flaky test DockerRegistryAuthTokenSuite.TestPushMisconfiguredTokenServiceResponseError
Fixes test by bumping retry count from 4 to 10 Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
This commit is contained in:
parent
b47c50cf11
commit
a96bf0fb2f
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ func (s *DockerRegistryAuthTokenSuite) TestPushMisconfiguredTokenServiceResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerRegistryAuthTokenSuite) TestPushMisconfiguredTokenServiceResponseError(c *check.C) {
|
func (s *DockerRegistryAuthTokenSuite) TestPushMisconfiguredTokenServiceResponseError(c *check.C) {
|
||||||
ts := getTestTokenService(http.StatusTooManyRequests, `{"errors": [{"code":"TOOMANYREQUESTS","message":"out of tokens"}]}`, 4)
|
ts := getTestTokenService(http.StatusTooManyRequests, `{"errors": [{"code":"TOOMANYREQUESTS","message":"out of tokens"}]}`, 10)
|
||||||
defer ts.Close()
|
defer ts.Close()
|
||||||
s.setupRegistryWithTokenService(c, ts.URL)
|
s.setupRegistryWithTokenService(c, ts.URL)
|
||||||
repoName := fmt.Sprintf("%s/busybox", privateRegistryURL)
|
repoName := fmt.Sprintf("%s/busybox", privateRegistryURL)
|
||||||
|
|
Loading…
Add table
Reference in a new issue