Skip to content

Commit

Permalink
[grid] Making the Grid build again
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Aug 21, 2020
1 parent 070db73 commit eed8354
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ java_library(
"//java/server/src/org/openqa/selenium/events",
"//java/server/src/org/openqa/selenium/grid/config",
artifact("com.google.guava:guava"),
artifact("org.zeromq:jeromq:0.5.1"),
artifact("net.jodah:failsafe"),
artifact("org.zeromq:jeromq:0.5.1"),
],
)
6 changes: 3 additions & 3 deletions java/server/src/org/openqa/selenium/grid/graphql/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public Node(UUID id,
this.id = Require.nonNull("Node id", id);
this.uri = Require.nonNull("Node uri", uri);
this.isUp = isUp;
this.maxSession = Require.nonNull("Node maxSession", maxSession);
this.capabilities = Require.nonNull("Node capabilities", JSON.toJson(capabilities));
this.maxSession = maxSession;
this.capabilities = Require.nonNull("Node capabilities", capabilities);
this.activeSessions = Require.nonNull("Active sessions", activeSessions);
}

Expand Down Expand Up @@ -83,7 +83,7 @@ public List<String> getActiveSessionIds() {
}

public String getCapabilities() {
List<Map> toReturn = new ArrayList<>();
List<Map<String, Object> > toReturn = new ArrayList<>();

for (Map.Entry<Capabilities, Integer> entry : capabilities.entrySet()) {
Map<String, Object> details = new HashMap<>();
Expand Down

0 comments on commit eed8354

Please sign in to comment.