From c713c2abd0ff420ba4c38bf1fea5b1d7f29482a0 Mon Sep 17 00:00:00 2001 From: Puja Jagani Date: Tue, 4 May 2021 12:50:44 +0530 Subject: [PATCH] [grid] Fix new session creation test --- .../selenium/grid/distributor/local/LocalDistributor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/server/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java b/java/server/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java index e8c7c3a99800d..66246b0efd31f 100644 --- a/java/server/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java +++ b/java/server/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java @@ -421,7 +421,7 @@ private void handleNewSessionRequest(SessionRequest sessionRequest, RequestId re attributeMap.put("request", EventAttribute.setValue(sessionRequest.toString())); Either response = newSession(sessionRequest); - if (response.isLeft()) { + if (response.isLeft() && response.left() instanceof RetrySessionRequestException) { boolean retried = sessionQueue.retryAddToQueue(sessionRequest); attributeMap.put("request.retry_add", EventAttribute.setValue(retried));