Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.stream.Collectors;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

Expand All @@ -35,6 +37,13 @@ class MicrometerTest {
MicrometerUtil.setDelegate(delegate);
}

@BeforeAll
static void setUp() {
// Increase default timeout to be resilient on slow CI runners (e.g. Windows).
// The step interval is 1000ms (set via JVM arg), so 30s gives ample margin.
Awaitility.setDefaultTimeout(Duration.ofSeconds(30));
}

@Test
void shouldRegisterAzureMonitorMeterRegistry() {
assertThat(Metrics.globalRegistry.getRegistries()).hasSize(1);
Expand Down
164 changes: 82 additions & 82 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading