Skip to content

Commit 7286632

Browse files
committed
BE: Make gh version check timeout configurable
remove timeout variable from tests
1 parent 9fa53aa commit 7286632

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

api/src/test/java/io/kafbat/ui/AbstractIntegrationTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
public abstract class AbstractIntegrationTest {
3535
public static final String LOCAL = "local";
3636
public static final String SECOND_LOCAL = "secondLocal";
37-
protected static final int timeout = 100;
3837

3938
private static final boolean IS_ARM =
4039
System.getProperty("os.arch").contains("arm") || System.getProperty("os.arch").contains("aarch64");
@@ -101,7 +100,7 @@ public void initialize(@NotNull ConfigurableApplicationContext context) {
101100

102101
System.setProperty("dynamic.config.enabled", "true");
103102
System.setProperty("config.related.uploads.dir", tmpDir.toString());
104-
System.setProperty(GITHUB_RELEASE_INFO_TIMEOUT, String.valueOf(timeout));
103+
System.setProperty(GITHUB_RELEASE_INFO_TIMEOUT, String.valueOf(100));
105104
}
106105
}
107106

api/src/test/java/io/kafbat/ui/service/ApplicationInfoServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ public class ApplicationInfoServiceTest extends AbstractIntegrationTest {
1212

1313
@Test
1414
public void testCustomGithubReleaseInfoTimeout() {
15-
assertEquals(timeout, service.githubReleaseInfo().getGithubApiMaxWaitTime());
15+
assertEquals(100, service.githubReleaseInfo().getGithubApiMaxWaitTime());
1616
}
1717
}

0 commit comments

Comments
 (0)