Reduce test flakiness: Give agent startup more time (10s -> 30s) (#11153)

Co-authored-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
Tim Jacomb 2025-10-04 09:02:45 +01:00 committed by GitHub
parent c5b876b582
commit 6ec55c327f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ import java.io.File;
import java.lang.ref.WeakReference;
import java.net.HttpURLConnection;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
@ -332,7 +333,7 @@ class ComputerTest {
// Connect the computer
computer.connect(false);
await("computer should be online after connect").until(() -> computer.isOnline(), is(true));
await("computer should be online after connect").atMost(Duration.ofSeconds(30)).until(() -> computer.isOnline(), is(true));
assertThat(computer.isConnected(), is(true));
assertThat(computer.isOffline(), is(false));