[grid] Fix new session creation test
@@ -424,7 +424,7 @@ private void handleNewSessionRequest(SessionRequest sessionRequest, RequestId re
attributeMap.put("request", EventAttribute.setValue(sessionRequest.toString()));
Either<SessionNotCreatedException, CreateSessionResponse> 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));
