Skip to content

Commit 7b8015a

Browse files
committed
Fix failing tests
1 parent 9f9f0e5 commit 7b8015a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

java/server/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private void refresh(NodeStatus status) {
277277
LOG.fine("Refreshing: " + status.getUri());
278278

279279
// check registrationSecret and stop processing if it doesn't match
280-
if (! Objects.equals(status.getRegistrationSecret(), registrationSecret)) {
280+
if (!Objects.equals(status.getRegistrationSecret(), registrationSecret)) {
281281
LOG.severe(String.format("Node at %s failed to send correct registration secret. Node NOT registered.", status.getUri()));
282282
bus.fire(new NodeRejectedEvent(status.getUri()));
283283
return;

java/server/test/org/openqa/selenium/grid/distributor/AddingNodesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public void distributorShouldUpdateStateOfExistingNodeWhenNodePublishesStateChan
175175
status.getMaxSessionCount(),
176176
status.getStereotypes(),
177177
ImmutableSet.of(new NodeStatus.Active(CAPS, new SessionId(UUID.randomUUID()), CAPS)),
178-
"cheese");
178+
null);
179179

180180
bus.fire(new NodeStatusEvent(crafted));
181181

java/server/test/org/openqa/selenium/grid/distributor/DistributorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public void registeringTheCorrectRegistrationSecretWorks()
255255

256256
latch.await(1, SECONDS);
257257

258-
assertThat(latch.getCount()).isEqualTo(1);
258+
assertThat(latch.getCount()).isEqualTo(0);
259259
}
260260

261261

0 commit comments

Comments
 (0)