Fix close code check in test

This commit is contained in:
Ravi Khadiwala authored and ravi-signal committed 2026-07-15 11:35:57 -05:00
1 parent 749d9c4f92
commit 90a5ad589b
1 file changed
+1 -1
@@ -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();
}