Skip to content

Commit f943d22

Browse files
committed
Update FAT test to wait for SSL start
1 parent 5eb66a8 commit f943d22

File tree

1 file changed

+5
-1
lines changed
  • dev/io.openliberty.microprofile.metrics.internal.5.0_fat/fat/src/io/openliberty/microprofile/metrics50/internal/tck/launcher

1 file changed

+5
-1
lines changed

dev/io.openliberty.microprofile.metrics.internal.5.0_fat/fat/src/io/openliberty/microprofile/metrics50/internal/tck/launcher/LibraryRefTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2023 IBM Corporation and others.
2+
* Copyright (c) 2023, 2025 IBM Corporation and others.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License 2.0
55
* which accompanies this distribution, and is available at
@@ -120,6 +120,7 @@ private static void isJava11014() throws IOException {
120120
public void nonExistentLibrary() throws Exception {
121121
server = serverNonExistentLibrary;
122122
server.startServer();
123+
server.waitForSSLStart();
123124

124125
//CWWKG0033W The value [<value>] specified for the reference attribute [libraryRef] was not found in the configuration.
125126
Assert.assertNotNull("CWWKG0033W Not found", server.waitForStringInLogUsingMark("CWWKG0033W"));
@@ -136,6 +137,7 @@ public void nonExistentLibrary() throws Exception {
136137
public void noMicrometerCore() throws Exception {
137138
server = serverNoMicrometerCore;
138139
server.startServer();
140+
server.waitForSSLStart();
139141

140142
//CWMMC0014I emits that metrics is using libraryRef
141143
Assert.assertNotNull("CWMMC0014I Not found", server.waitForStringInLogUsingMark("CWMMC0014I"));
@@ -190,6 +192,7 @@ public void externalPrometheusMicrometer() throws Exception {
190192
}
191193

192194
server.startServer();
195+
server.waitForSSLStart();
193196

194197
//CWMMC0014I emits that metrics is using libraryRef
195198
Assert.assertNotNull("CWMMC0014I Not found", server.waitForStringInLogUsingMark("CWMMC0014I"));
@@ -236,6 +239,7 @@ public void externalPrometheusMicrometer() throws Exception {
236239
public void externalMicrometerUselessJar() throws Exception {
237240
server = serverMicrometerUseless;
238241
server.startServer();
242+
server.waitForSSLStart();
239243

240244
//CWMMC0014I emits that metrics is using libraryRef
241245
Assert.assertNotNull("CWMMC0014I Not found", server.waitForStringInLogUsingMark("CWMMC0014I"));

0 commit comments

Comments
 (0)