Skip to content

Commit

Permalink
issue SeleniumHQ#1571: correct initialization of custom node
Browse files Browse the repository at this point in the history
	modified:   customize_node.en.md
	modified:   customize_node.ja.md
	modified:   customize_node.pt-br.md
	modified:   customize_node.zh-cn.md
  • Loading branch information
bhecquet authored and diemol committed Feb 6, 2024
1 parent f9d840c commit 4636a53
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public class DecoratedLoggingNode extends Node {

private Node node;

protected DecoratedLoggingNode(Tracer tracer, URI uri, Secret registrationSecret) {
super(tracer, new NodeId(UUID.randomUUID()), uri, registrationSecret);
protected DecoratedLoggingNode(Tracer tracer, NodeId nodeId, URI uri, Secret registrationSecret) {
super(tracer, nodeId, uri, registrationSecret);
}

public static Node create(Config config) {
Expand All @@ -109,7 +109,9 @@ public class DecoratedLoggingNode extends Node {
Node node = LocalNodeFactory.create(config);

DecoratedLoggingNode wrapper = new DecoratedLoggingNode(loggingOptions.getTracer(),
uri, secretOptions.getRegistrationSecret());
node.getId(),
uri,
secretOptions.getRegistrationSecret());
wrapper.node = node;
return wrapper;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ public class DecoratedLoggingNode extends Node {

private Node node;

protected DecoratedLoggingNode(Tracer tracer, URI uri, Secret registrationSecret) {
super(tracer, new NodeId(UUID.randomUUID()), uri, registrationSecret);
protected DecoratedLoggingNode(Tracer tracer, NodeId nodeId, URI uri, Secret registrationSecret) {
super(tracer, nodeId, uri, registrationSecret);
}

public static Node create(Config config) {
Expand All @@ -114,7 +114,9 @@ public class DecoratedLoggingNode extends Node {
Node node = LocalNodeFactory.create(config);

DecoratedLoggingNode wrapper = new DecoratedLoggingNode(loggingOptions.getTracer(),
uri, secretOptions.getRegistrationSecret());
node.getId(),
uri,
secretOptions.getRegistrationSecret());
wrapper.node = node;
return wrapper;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ public class DecoratedLoggingNode extends Node {

private Node node;

protected DecoratedLoggingNode(Tracer tracer, URI uri, Secret registrationSecret) {
super(tracer, new NodeId(UUID.randomUUID()), uri, registrationSecret);
protected DecoratedLoggingNode(Tracer tracer, NodeId nodeId, URI uri, Secret registrationSecret) {
super(tracer, nodeId, uri, registrationSecret);
}

public static Node create(Config config) {
Expand All @@ -104,7 +104,9 @@ public class DecoratedLoggingNode extends Node {
Node node = LocalNodeFactory.create(config);

DecoratedLoggingNode wrapper = new DecoratedLoggingNode(loggingOptions.getTracer(),
uri, secretOptions.getRegistrationSecret());
node.getId(),
uri,
secretOptions.getRegistrationSecret());
wrapper.node = node;
return wrapper;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ public class DecoratedLoggingNode extends Node {

private Node node;

protected DecoratedLoggingNode(Tracer tracer, URI uri, Secret registrationSecret) {
super(tracer, new NodeId(UUID.randomUUID()), uri, registrationSecret);
protected DecoratedLoggingNode(Tracer tracer, NodeId nodeId, URI uri, Secret registrationSecret) {
super(tracer, nodeId, uri, registrationSecret);
}

public static Node create(Config config) {
Expand All @@ -114,7 +114,9 @@ public class DecoratedLoggingNode extends Node {
Node node = LocalNodeFactory.create(config);

DecoratedLoggingNode wrapper = new DecoratedLoggingNode(loggingOptions.getTracer(),
uri, secretOptions.getRegistrationSecret());
node.getId(),
uri,
secretOptions.getRegistrationSecret());
wrapper.node = node;
return wrapper;
}
Expand Down

0 comments on commit 4636a53

Please sign in to comment.