mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-11-30 01:16:50 +00:00
Fix close code check in test
This commit is contained in:
1 parent
749d9c4f92
commit
90a5ad589b
1 file changed
+1
-1
+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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user