File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
java/server/src/org/openqa/selenium/grid/node/local Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -485,10 +485,12 @@ private void killSession(SessionSlot slot) {
485
485
public NodeStatus getStatus () {
486
486
Set <Slot > slots = factories .stream ()
487
487
.map (slot -> {
488
+ Instant lastStarted = Instant .EPOCH ;
488
489
Optional <Session > session = Optional .empty ();
489
490
if (!slot .isAvailable ()) {
490
491
ActiveSession activeSession = slot .getSession ();
491
492
if (activeSession != null ) {
493
+ lastStarted = activeSession .getStartTime ();
492
494
session = Optional .of (
493
495
new Session (
494
496
activeSession .getId (),
@@ -502,7 +504,7 @@ public NodeStatus getStatus() {
502
504
return new Slot (
503
505
new SlotId (getId (), slot .getId ()),
504
506
slot .getStereotype (),
505
- Instant . EPOCH ,
507
+ lastStarted ,
506
508
session );
507
509
})
508
510
.collect (toImmutableSet ());
You can’t perform that action at this time.
0 commit comments