Skip to content

Commit 4e528a5

Browse files
committed
test should use ErrorCodes constant, not hard code the value
1 parent cac9bf3 commit 4e528a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/test/org/openqa/selenium/remote/ErrorHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public void testStatusCodesRaisedBackToStatusMatches() {
479479
int expected = exception.getKey();
480480
if (e instanceof InvalidSelectorException) {
481481
// all of the special invalid selector exceptions are just mapped to the generic invalid selector
482-
expected = 32;
482+
expected = ErrorCodes.INVALID_SELECTOR_ERROR;
483483
}
484484
int seenStatusCode = new ErrorCodes().toStatusCode(e);
485485
if (seenStatusCode != expected) {

0 commit comments

Comments
 (0)