File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
java/src/org/openqa/selenium/grid/graphql Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 28
28
import org .openqa .selenium .grid .sessionqueue .NewSessionQueue ;
29
29
import org .openqa .selenium .internal .Require ;
30
30
import org .openqa .selenium .json .Json ;
31
+ import org .openqa .selenium .remote .SessionId ;
31
32
32
33
import java .net .URI ;
33
34
import java .util .ArrayList ;
41
42
public class Grid {
42
43
43
44
private static final Json JSON = new Json ();
45
+ private static final SessionId RESERVED = new SessionId ("reserved" );
44
46
private final URI uri ;
45
47
private final DistributorStatus distributorStatus ;
46
48
private final List <Set <Capabilities >> queueInfoList ;
@@ -150,7 +152,7 @@ public List<Session> getSessions() {
150
152
List <Session > sessions = new ArrayList <>();
151
153
for (NodeStatus status : distributorStatus .getNodes ()) {
152
154
for (Slot slot : status .getSlots ()) {
153
- if (slot .getSession ()!= null ) {
155
+ if (slot .getSession () != null && ! slot . getSession (). getId (). equals ( RESERVED ) ) {
154
156
org .openqa .selenium .grid .data .Session session = slot .getSession ();
155
157
sessions .add (
156
158
new org .openqa .selenium .grid .graphql .Session (
You can’t perform that action at this time.
0 commit comments