Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed May 18, 2019
1 parent eab25c5 commit 715075b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions http/server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ test(async function responseWrite(): Promise<void> {
const buf = new Buffer();
const bufw = new BufWriter(buf);
const request = new ServerRequest();
request.pipelineId = 1;
request.w = bufw;

const d0 = deferred<void>();
Expand All @@ -68,12 +67,11 @@ test(async function responseWrite(): Promise<void> {
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;
}
});

Expand Down

0 comments on commit 715075b

Please sign in to comment.