diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-09-20 18:32:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-20 18:32:18 -0400 |
| commit | 97bb2bdb79cbd0a400c643e7be0029440cb15633 (patch) | |
| tree | 92c883d38b7af413fcbfbac82f17775a7064dfec /js/fetch_test.ts | |
| parent | 93b7acf99d6456e6e194c03f024b788ce5adf20e (diff) | |
dial/listen API change (#3000)
Previously: dial("tcp", "deno.land:80")
Now: dial({ hostname: "deno.land", port: 80, transport: "tcp" })
Similarly with listen().
Diffstat (limited to 'js/fetch_test.ts')
| -rw-r--r-- | js/fetch_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/fetch_test.ts b/js/fetch_test.ts index 4fcc39f01..56c693681 100644 --- a/js/fetch_test.ts +++ b/js/fetch_test.ts @@ -264,7 +264,7 @@ testPerm({ net: true }, async function fetchUserAgent(): Promise<void> { /* function bufferServer(addr: string): Deno.Buffer { - const listener = Deno.listen("tcp", addr); + const listener = Deno.listen(addr); const buf = new Deno.Buffer(); listener.accept().then(async conn => { const p1 = buf.readFrom(conn); |
