From 21c3ea657bfe694b4336a81bd36882695b72484d Mon Sep 17 00:00:00 2001 From: Anjum Fatima Date: Wed, 29 Nov 2023 16:54:55 -0600 Subject: [PATCH] Ignore ISE while stopping the server The tests do a stop server before updating the config. This stops the WAB io.openliberty.microprofile.openapi.2.0.internal.servlet. But sometimes it throws ISE: BundleContext is no longer valid, intermittently when ungetting the service because the service is chenged and the service tracker tries to unget the service and notices that the bundle context was closed and invalid. Updated Equinox would no longer throw exceptions on invalid context when ungetService is called. For reference: https://github.com/eclipse-equinox/equinox/issues/172 --- .../src/io/openliberty/checkpoint/fat/OpenAPIConfigTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/io.openliberty.checkpoint_fat/fat/src/io/openliberty/checkpoint/fat/OpenAPIConfigTest.java b/dev/io.openliberty.checkpoint_fat/fat/src/io/openliberty/checkpoint/fat/OpenAPIConfigTest.java index eb1b725dfea..85013e71202 100644 --- a/dev/io.openliberty.checkpoint_fat/fat/src/io/openliberty/checkpoint/fat/OpenAPIConfigTest.java +++ b/dev/io.openliberty.checkpoint_fat/fat/src/io/openliberty/checkpoint/fat/OpenAPIConfigTest.java @@ -89,7 +89,7 @@ public void setup() throws Exception { @After public void teardown() throws Exception { try { - server.stopServer(); + server.stopServer("CWWKE0701E: .*BundleContext is no longer valid io.openliberty.microprofile.openapi.2.0.internal.servlet*"); } finally { configureEnvVariable(server, emptyMap()); }