From 90a5ad589bce609036aa5caa2a2823095784ae42 Mon Sep 17 00:00:00 2001 From: Ravi Khadiwala Date: Tue, 14 Jul 2026 16:39:35 -0500 Subject: [PATCH] Fix close code check in test --- .../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 625f56f5d..9e7c8158a 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), "Shutdown code should be 1001 or 1006, was " + shutdownCode); + assertTrue(shutdownCode == StatusCode.SHUTDOWN || (shutdownCode == StatusCode.NO_CLOSE && useH2), "Shutdown code should be 1001 or 1006, was " + shutdownCode); } finally { support.after(); }