File tree 1 file changed +4
-3
lines changed
src/test/java/com/google/firebase/internal
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -117,10 +117,11 @@ public void testUnauthorizedPostRequest() throws FirebaseException {
117
117
118
118
@ Test (timeout = 10_000L )
119
119
public void testConnectTimeoutGet () throws IOException {
120
- HttpTransport transport = new ApacheHttp2Transport ();
120
+ ApacheHttp2Transport transport = new ApacheHttp2Transport ();
121
+ ApacheHttp2Request request = transport .buildRequest ("GET" , "https://localhost:" + port );
122
+ request .setTimeout (100 , 0 );
121
123
try {
122
- transport .createRequestFactory ().buildGetRequest (new GenericUrl ("https://localhost:" + port ))
123
- .setConnectTimeout (100 ).execute ();
124
+ request .execute ();
124
125
fail ("No exception thrown for HTTP error response" );
125
126
} catch (IOException e ) {
126
127
System .out .println (e .getCause ());
You can’t perform that action at this time.
0 commit comments