@@ -146,7 +146,7 @@ class BintrayClientSpec extends Specification {
146146 private BintrayImpl createClient (String url = " https://api.bintray.com" ) {
147147 UsernamePasswordCredentials creds = new UsernamePasswordCredentials (connectionProperties. username as String , connectionProperties. apiKey as String )
148148 HttpClientConfigurator conf = new HttpClientConfigurator ()
149- return new BintrayImpl (conf. hostFromUrl(url). noRetry(). authentication(creds). getClient(), url)
149+ return new BintrayImpl (conf. hostFromUrl(url). noRetry(). authentication(creds). getClient(), url, 5 )
150150 }
151151
152152 def ' Connection is successful and subject has correct username and avatar' () {
@@ -369,7 +369,7 @@ class BintrayClientSpec extends Specification {
369369 sleep(10000 ) // wait for previous deletions to propagate
370370 def ver = bintray. subject(connectionProperties. username). repository(REPO_NAME ). createPkg(pkgBuilder). createVersion(versionBuilder)
371371 HttpClientConfigurator conf = new HttpClientConfigurator ();
372- def anonymousDownloadServerClient = new BintrayImpl (conf. hostFromUrl(" https://dl.bintray.com" ). noRetry(). noCookies(). getClient(), " https://dl.bintray.com" )
372+ def anonymousDownloadServerClient = new BintrayImpl (conf. hostFromUrl(" https://dl.bintray.com" ). noRetry(). noCookies(). getClient(), " https://dl.bintray.com" , 5 )
373373
374374 when :
375375 sleep(6000 )
@@ -386,7 +386,7 @@ class BintrayClientSpec extends Specification {
386386 setup :
387387 VersionHandle ver = bintray. subject(connectionProperties. username). repository(REPO_NAME ). createPkg(pkgBuilder). createVersion(versionBuilder). upload(this . files)
388388 HttpClientConfigurator conf = new HttpClientConfigurator ();
389- def anonymousDownloadServerClient = new BintrayImpl (conf. hostFromUrl(" https://dl.bintray.com" ). noRetry(). getClient(), " https://dl.bintray.com" )
389+ def anonymousDownloadServerClient = new BintrayImpl (conf. hostFromUrl(" https://dl.bintray.com" ). noRetry(). getClient(), " https://dl.bintray.com" , 5 )
390390
391391 when :
392392 sleep(2000 )
0 commit comments