File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
java/server/test/org/openqa/selenium/grid/distributor Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -183,20 +183,20 @@ public void shouldStartHeartBeatOnNodeRegistration() {
183
183
CountDownLatch latch = new CountDownLatch (1 );
184
184
185
185
bus .addListener (NodeHeartBeatEvent .listener (nodeStatus -> {
186
- latch .countDown ();
187
186
if (node .getId ().equals (nodeStatus .getId ())) {
187
+ latch .countDown ();
188
188
heartbeatStarted .set (true );
189
189
}
190
190
}));
191
191
waitToHaveCapacity (distributor );
192
- boolean eventFired = false ;
192
+ boolean eventFiredAndListenedTo = false ;
193
193
try {
194
- eventFired = latch .await (30 , TimeUnit .SECONDS );
194
+ eventFiredAndListenedTo = latch .await (30 , TimeUnit .SECONDS );
195
195
} catch (InterruptedException e ) {
196
196
Assert .fail ("Thread Interrupted" );
197
197
}
198
198
199
- assertThat (eventFired ).isTrue ();
199
+ assertThat (eventFiredAndListenedTo ).isTrue ();
200
200
assertThat (heartbeatStarted .get ()).isTrue ();
201
201
}
202
202
You can’t perform that action at this time.
0 commit comments