From 253671c20607188fa318316dc3aac4480c7c094d Mon Sep 17 00:00:00 2001 From: Ravi Khadiwala Date: Fri, 10 Jul 2026 11:50:05 -0500 Subject: [PATCH] Improve assertion failure message in GracefulShutdownIntegrationTest --- .../textsecuregcm/GracefulShutdownIntegrationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/test/java/org/whispersystems/textsecuregcm/GracefulShutdownIntegrationTest.java b/service/src/test/java/org/whispersystems/textsecuregcm/GracefulShutdownIntegrationTest.java index f85698a03..625f56f5d 100644 --- a/service/src/test/java/org/whispersystems/textsecuregcm/GracefulShutdownIntegrationTest.java +++ b/service/src/test/java/org/whispersystems/textsecuregcm/GracefulShutdownIntegrationTest.java @@ -117,7 +117,7 @@ public class GracefulShutdownIntegrationTest { // H2 stream. It's possible that the stream cancellation makes it to the wire before the close frame which will // be parsed as a 1006, so we accept both . In practice, a 1001 vs an RST_STREAM shouldn't make a difference to a // client. We just care that jetty is attempting to shut down all websockets during graceful shutdowns. - assertTrue(shutdownCode == StatusCode.SHUTDOWN || (shutdownCode == StatusCode.NO_CODE && useH2)); + assertTrue(shutdownCode == StatusCode.SHUTDOWN || (shutdownCode == StatusCode.NO_CODE && useH2), "Shutdown code should be 1001 or 1006, was " + shutdownCode); } finally { support.after(); }