Skip to content

Commit db5d602

Browse files
author
danf
committed
0.6 - fix tests
1 parent 6a2c344 commit db5d602

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

impl/src/test/groovy/com/jfrog/bintray/client/impl/BintrayClientSpec.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)