File tree 2 files changed +8
-4
lines changed
java/test/org/openqa/selenium/remote
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ load("//java:version.bzl", "TOOLS_JAVA_VERSION")
5
5
java_test_suite (
6
6
name = "small-tests" ,
7
7
size = "small" ,
8
- srcs = glob (["*.java" ]),
8
+ srcs = glob ([
9
+ "*.java" ,
10
+ "jdk/*.java" ,
11
+ ]),
9
12
javacopts = [
10
13
"--release" ,
11
14
TOOLS_JAVA_VERSION ,
@@ -15,6 +18,7 @@ java_test_suite(
15
18
"//java/src/org/openqa/selenium:core" ,
16
19
"//java/src/org/openqa/selenium/remote/http" ,
17
20
"//java/test/org/openqa/selenium/environment" ,
21
+ "//java/test/org/openqa/selenium/remote/internal:test-lib" ,
18
22
"//java/test/org/openqa/selenium/testing:annotations" ,
19
23
artifact ("org.assertj:assertj-core" ),
20
24
artifact ("com.google.guava:guava" ),
Original file line number Diff line number Diff line change @@ -208,19 +208,19 @@ public void shouldAllowConfigurationFromSystemProperties() {
208
208
delegate =
209
209
req -> {
210
210
try {
211
- Thread .sleep (1100 );
211
+ Thread .sleep (3000 );
212
212
} catch (InterruptedException e ) {
213
213
throw new RuntimeException (e );
214
214
}
215
215
return new HttpResponse ().setContent (Contents .utf8String ("Connection timed out" ));
216
216
};
217
217
try {
218
218
System .setProperty ("webdriver.httpclient.connectionTimeout" , "1" );
219
- System .setProperty ("webdriver.httpclient.readTimeout" , "300 " );
219
+ System .setProperty ("webdriver.httpclient.readTimeout" , "2 " );
220
220
System .setProperty ("webdriver.httpclient.version" , "HTTP_1_1" );
221
221
ClientConfig clientConfig = ClientConfig .defaultConfig ();
222
222
assertThat (clientConfig .connectionTimeout ()).isEqualTo (Duration .ofSeconds (1 ));
223
- assertThat (clientConfig .readTimeout ()).isEqualTo (Duration .ofSeconds (300 ));
223
+ assertThat (clientConfig .readTimeout ()).isEqualTo (Duration .ofSeconds (2 ));
224
224
assertThat (clientConfig .version ()).isEqualTo ("HTTP_1_1" );
225
225
HttpClient client =
226
226
createFactory ().createClient (clientConfig .baseUri (URI .create (server .whereIs ("/" ))));
You can’t perform that action at this time.
0 commit comments