Skip to content

Commit cde0cd0

Browse files
pujaganidiemol
andauthored
[grid] Fix new session creation test (#9438)
Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
1 parent 3106c9c commit cde0cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/server/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ private void handleNewSessionRequest(SessionRequest sessionRequest, RequestId re
424424
attributeMap.put("request", EventAttribute.setValue(sessionRequest.toString()));
425425
Either<SessionNotCreatedException, CreateSessionResponse> response = newSession(sessionRequest);
426426

427-
if (response.isLeft()) {
427+
if (response.isLeft() && response.left() instanceof RetrySessionRequestException) {
428428
boolean retried = sessionQueue.retryAddToQueue(sessionRequest);
429429

430430
attributeMap.put("request.retry_add", EventAttribute.setValue(retried));

0 commit comments

Comments
 (0)