diff --git a/java/src/org/openqa/selenium/grid/node/Node.java b/java/src/org/openqa/selenium/grid/node/Node.java index 44f3204c14e61..5d54bb3e2981d 100644 --- a/java/src/org/openqa/selenium/grid/node/Node.java +++ b/java/src/org/openqa/selenium/grid/node/Node.java @@ -121,10 +121,6 @@ public abstract class Node implements HasReadyState, Routable { private final Route routes; protected boolean draining; - protected Node(Tracer tracer, NodeId id, URI uri, Secret registrationSecret) { - this(tracer, id, uri, registrationSecret, Duration.ofSeconds(300)); - } - protected Node( Tracer tracer, NodeId id, URI uri, Secret registrationSecret, Duration sessionTimeout) { this.tracer = Require.nonNull("Tracer", tracer); diff --git a/java/test/org/openqa/selenium/grid/distributor/AddingNodesTest.java b/java/test/org/openqa/selenium/grid/distributor/AddingNodesTest.java index 9dfce163cd477..4ab6bb6770312 100644 --- a/java/test/org/openqa/selenium/grid/distributor/AddingNodesTest.java +++ b/java/test/org/openqa/selenium/grid/distributor/AddingNodesTest.java @@ -376,7 +376,12 @@ static class CustomNode extends Node { protected CustomNode( EventBus bus, NodeId nodeId, URI uri, Function factory) { - super(DefaultTestTracer.createTracer(), nodeId, uri, registrationSecret); + super( + DefaultTestTracer.createTracer(), + nodeId, + uri, + registrationSecret, + Duration.ofSeconds(300)); this.bus = bus; this.factory = Objects.requireNonNull(factory);