We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9249e31 commit 14eecceCopy full SHA for 14eecce
1 file changed
java/src/org/openqa/selenium/grid/data/NodeStatus.java
@@ -136,7 +136,7 @@ public boolean hasCapability(Capabilities caps) {
136
}
137
138
public boolean hasCapacity() {
139
- return slots.stream().anyMatch(slot -> slot.getSession() == null);
+ return slots.stream().filter(slot -> slot.getSession() != null).count() < maxSessionCount;
140
141
142
// Check if the Node's max session limit is not exceeded and has a free slot that supports the capability.
0 commit comments