diff --git a/http/server_test.ts b/http/server_test.ts index 904a667c7f9da..f7100bd382d87 100644 --- a/http/server_test.ts +++ b/http/server_test.ts @@ -48,7 +48,6 @@ test(async function responseWrite(): Promise { const buf = new Buffer(); const bufw = new BufWriter(buf); const request = new ServerRequest(); - request.pipelineId = 1; request.w = bufw; const d0 = deferred(); @@ -68,12 +67,11 @@ test(async function responseWrite(): Promise { return -1; }, close: (): void => {}, - lastPipelineId: 0, - pendingDeferredMap: new Map([[0, d0], [1, d1]]) }; await request.respond(testCase.response); assertEquals(buf.toString(), testCase.raw); + await request.done; } });