Skip to content

Commit f276459

Browse files
committed
Fix failing test.
In Selenium 2.53.0, the error code mapper would not match the UnsupportedCommandException and so would return the default value of UNHANDLED_ERROR. In 3.0, we correctly map this to the more appropriate error code of UNKNOWN_COMMAND, which describes the lack of a match more appropriately.
1 parent cdba733 commit f276459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/server/test/org/openqa/selenium/remote/server/DriverServletTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public void handlesInvalidCommandsToRootOfDriverService()
182182
assertEquals(500, response.getStatus());
183183

184184
JsonObject jsonResponse = new JsonParser().parse(response.getBody()).getAsJsonObject();
185-
assertEquals(ErrorCodes.UNHANDLED_ERROR, jsonResponse.get("status").getAsInt());
185+
assertEquals(ErrorCodes.UNKNOWN_COMMAND, jsonResponse.get("status").getAsInt());
186186

187187
JsonObject value = jsonResponse.get("value").getAsJsonObject();
188188
assertTrue(value.get("message").getAsString().startsWith("POST /"));

0 commit comments

Comments
 (0)