Skip to content

Commit

Permalink
timeouts increased to 2 secs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaruch committed Oct 27, 2014
1 parent 7153a30 commit f024896
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ import spock.lang.Shared
import spock.lang.Specification

import java.security.MessageDigest
import java.util.concurrent.TimeUnit

import static groovyx.net.http.ContentType.BINARY
import static groovyx.net.http.ContentType.JSON
import static java.lang.System.getenv
import static java.util.concurrent.TimeUnit.SECONDS
import static org.apache.http.HttpStatus.SC_NOT_FOUND
import static org.apache.http.auth.params.AuthPNames.TARGET_AUTH_PREF
import static org.apache.http.client.params.AuthPolicy.BASIC
Expand Down Expand Up @@ -284,7 +286,7 @@ class BintrayClientSpec extends Specification {
def ver = bintray.currentSubject().repository(REPO_NAME).createPkg(pkgBuilder).createVersion(versionBuilder)

when:
Thread.sleep(1000) //wait for previous deletions to propagate
sleep(2000) //wait for previous deletions to propagate
ver.upload(this.files)
"https://dl.bintray.com/$connectionProperties.username/$REPO_NAME/${files.keySet().first()}".toURL().content
then:
Expand All @@ -307,7 +309,7 @@ class BintrayClientSpec extends Specification {
VersionHandle ver = bintray.currentSubject().repository(REPO_NAME).createPkg(pkgBuilder).createVersion(versionBuilder).upload(this.files)
when:
ver.discard()
Thread.sleep(1000) //wait for propogation to dl and stuff
sleep(2000) //wait for propogation to dl and stuff
"https://dl.bintray.com/$connectionProperties.username/$REPO_NAME/${files.keySet().first()}".toURL().content
then:
thrown FileNotFoundException
Expand Down

0 comments on commit f024896

Please sign in to comment.