File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/org/openqa/selenium/remote/server
test/org/openqa/grid/internal/utils Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public void setConfiguration(StandaloneConfiguration configuration) {
83
83
}
84
84
85
85
public void boot () {
86
- if (configuration .jettyThreads > 0 ) {
86
+ if (configuration .jettyThreads != null && configuration . jettyThreads > 0 ) {
87
87
server = new Server (new QueuedThreadPool (configuration .jettyThreads ));
88
88
} else {
89
89
server = new Server ();
Original file line number Diff line number Diff line change @@ -27,14 +27,12 @@ public int getRealPort() {
27
27
};
28
28
RegistrationRequest config = new RegistrationRequest ();
29
29
config .setRole (GridRole .NODE );
30
- config .getConfiguration ().put (RegistrationRequest .HUB_HOST , "localhost" );
31
- config .getConfiguration ().put (RegistrationRequest .HUB_PORT , 4444 );
32
- config .getConfiguration ().put (RegistrationRequest .PORT , 0 );
33
- config .getConfiguration ().put (RegistrationRequest .REMOTE_HOST , "http://localhost:0/" );
30
+ config .getConfiguration ().port = 0 ;
31
+ config .getConfiguration ().hub = "http://locahost:4444" ;
34
32
SelfRegisteringRemote remote = new SelfRegisteringRemote (config );
35
33
remote .setRemoteServer (server );
36
34
remote .updateConfigWithRealPort ();
37
- String host = (String ) remote .getConfiguration ().get ( RegistrationRequest . REMOTE_HOST );
35
+ String host = (String ) remote .getConfiguration ().getRemoteHost ( );
38
36
assertEquals ("Ensure that the remote host is updated properly" ,
39
37
"http://localhost:" + server .getRealPort (), host );
40
38
You can’t perform that action at this time.
0 commit comments