File tree Expand file tree Collapse file tree
java/test/org/openqa/selenium/grid/router Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -221,12 +221,13 @@ public void shouldRemoveSessionAfterNodeIsShutDownGracefully() {
221221 Optional <Map <String , Object >> maybeResponse =
222222 Optional .ofNullable (Values .get (httpResponse , Map .class ));
223223
224+ assertThat (maybeResponse .isPresent ()).isTrue ();
224225 String rawResponse = JSON .toJson (maybeResponse .get ().get ("sessionId" ));
225226 SessionId id = JSON .toType (rawResponse , SessionId .class );
226227
227228 Session session = sessions .get (id );
228229
229- assertThat (session .getCapabilities ()) .isEqualTo (capabilities );
230+ assertThat (session .getCapabilities (). getBrowserName ()) .isEqualTo (capabilities . getBrowserName () );
230231
231232 nodeServer .stop ();
232233
@@ -296,7 +297,7 @@ public void shouldRemoveSessionAfterNodeIsDown() throws URISyntaxException {
296297 SessionId id = result .right ().getSession ().getId ();
297298 Session session = sessions .get (id );
298299
299- assertThat (session .getCapabilities ()) .isEqualTo (capabilities );
300+ assertThat (session .getCapabilities (). getBrowserName ()) .isEqualTo (capabilities . getBrowserName () );
300301
301302 availability .set (DOWN );
302303
You can’t perform that action at this time.
0 commit comments