Fix tests
This commit is contained in:
parent
de4b6d7733
commit
4ac364d92a
|
@ -62,6 +62,11 @@ class Netty38ClientTest extends HttpClientTest {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
boolean testRemoteConnection() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
def "connection error (unopened port)"() {
|
def "connection error (unopened port)"() {
|
||||||
given:
|
given:
|
||||||
def uri = new URI("http://localhost:$UNUSABLE_PORT/")
|
def uri = new URI("http://localhost:$UNUSABLE_PORT/")
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Netty38ClientTest extends HttpClientTest {
|
||||||
def clientConfig = new AsyncHttpClientConfig.Builder()
|
def clientConfig = new AsyncHttpClientConfig.Builder()
|
||||||
.setRequestTimeoutInMs(TimeUnit.SECONDS.toMillis(10).toInteger())
|
.setRequestTimeoutInMs(TimeUnit.SECONDS.toMillis(10).toInteger())
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
@Shared
|
@Shared
|
||||||
@AutoCleanup
|
@AutoCleanup
|
||||||
AsyncHttpClient asyncHttpClient = new AsyncHttpClient(clientConfig)
|
AsyncHttpClient asyncHttpClient = new AsyncHttpClient(clientConfig)
|
||||||
|
@ -62,6 +62,11 @@ class Netty38ClientTest extends HttpClientTest {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
boolean testRemoteConnection() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
def "connection error (unopened port)"() {
|
def "connection error (unopened port)"() {
|
||||||
given:
|
given:
|
||||||
def uri = new URI("http://localhost:$UNUSABLE_PORT/")
|
def uri = new URI("http://localhost:$UNUSABLE_PORT/")
|
||||||
|
|
Loading…
Reference in New Issue