mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
de-flaky
This commit is contained in:
@@ -2457,7 +2457,7 @@ test("request.socket._secureEstablished should identify if the request is secure
|
||||
|
||||
test("should emit clientError when Content-Length is invalid", async () => {
|
||||
const { promise, resolve, reject } = Promise.withResolvers();
|
||||
const server = http.createServer(reject);
|
||||
await using server = http.createServer(reject);
|
||||
|
||||
server.on("clientError", (err, socket) => {
|
||||
resolve(err);
|
||||
@@ -2481,7 +2481,7 @@ test("should emit clientError when Content-Length is invalid", async () => {
|
||||
|
||||
test("should emit clientError when mixing Content-Length and Transfer-Encoding", async () => {
|
||||
const { promise, resolve, reject } = Promise.withResolvers();
|
||||
const server = http.createServer(reject);
|
||||
await using server = http.createServer(reject);
|
||||
|
||||
server.on("clientError", (err, socket) => {
|
||||
resolve(err);
|
||||
|
||||
Reference in New Issue
Block a user