Skip to content

Commit

Permalink
[java][grid]: update test use the right constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
  • Loading branch information
VietND96 committed May 6, 2024
1 parent bc16a30 commit c4db212
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions java/src/org/openqa/selenium/grid/node/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,12 @@ static class CustomNode extends Node {

protected CustomNode(
EventBus bus, NodeId nodeId, URI uri, Function<Capabilities, Session> factory) {
super(DefaultTestTracer.createTracer(), nodeId, uri, registrationSecret);
super(
DefaultTestTracer.createTracer(),
nodeId,
uri,
registrationSecret,
Duration.ofSeconds(300));

this.bus = bus;
this.factory = Objects.requireNonNull(factory);
Expand Down

0 comments on commit c4db212

Please sign in to comment.