Skip to content

Commit 80c1fd9

Browse files
committed
Revert "test: assert http2 early 413 closes without reset"
This reverts commit facb3bc.
1 parent 904b9db commit 80c1fd9

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

test/server-socket.test.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ import { bodyLimit } from 'hono/body-limit'
33
import fs from 'node:fs'
44
import { request as requestHTTP } from 'node:http'
55
import type { IncomingMessage } from 'node:http'
6-
import {
7-
connect as connectHTTP2,
8-
constants as h2constants,
9-
createSecureServer as createHTTP2Server,
10-
} from 'node:http2'
6+
import { connect as connectHTTP2, createSecureServer as createHTTP2Server } from 'node:http2'
117
import type { ClientHttp2Session } from 'node:http2'
128
import { request as requestHTTPS, createServer as createHTTPSServer } from 'node:https'
139
import { connect as connectNet } from 'node:net'
@@ -307,9 +303,6 @@ describe('autoCleanupIncoming: true (default)', () => {
307303
if (!expectEmptyBody) {
308304
expect(responseBody).toBe('Payload Too Large')
309305
}
310-
if ('rstCode' in req) {
311-
expect(req.rstCode).toBe(h2constants.NGHTTP2_NO_ERROR)
312-
}
313306
// Should not get ECONNRESET before receiving the response
314307
if (requestError) {
315308
expect((requestError as NodeJS.ErrnoException).code).not.toBe('ECONNRESET')

0 commit comments

Comments
 (0)