File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
test/src/test/java/hudson/model Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 5252import java .lang .ref .WeakReference ;
5353import java .net .HttpURLConnection ;
5454import java .nio .charset .StandardCharsets ;
55+ import java .time .Duration ;
5556import java .util .Map ;
5657import java .util .concurrent .TimeUnit ;
5758import java .util .logging .Level ;
@@ -332,7 +333,7 @@ public void isConnectedTest() throws Exception {
332333
333334 // Connect the computer
334335 computer .connect (false );
335- await ("computer should be online after connect" ).until (() -> computer .isOnline (), is (true ));
336+ await ("computer should be online after connect" ).atMost ( Duration . ofSeconds ( 30 )). until (() -> computer .isOnline (), is (true ));
336337 assertThat (computer .isConnected (), is (true ));
337338 assertThat (computer .isOffline (), is (false ));
338339
You can’t perform that action at this time.
0 commit comments