Skip to content

Commit

Permalink
unused unstable method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dojyorin committed Nov 22, 2023
1 parent 06c3de4 commit 19ee4d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@ const sample = new Uint8Array([
Deno.test({
name: "Fetch: Get",
async fn(){
const ac = new AbortController();

const server = Deno.serve({
hostname: "127.0.0.1",
port: 62000,
signal: ac.signal
}, () => new Response(sample));

const result = await fetchExtend("http://127.0.0.1:62000", "byte");

assertEquals(result, sample);

await server.shutdown();
ac.abort();
await server.finished;
}
});

0 comments on commit 19ee4d5

Please sign in to comment.