mirror of
https://github.com/denoland/deno.git
synced 2025-02-18 19:33:00 -05:00
test: remove one of 'node_unit_tests::tls_test' tests (#27985)
It will be moved to `npm_smoke_tests` repo instead
This commit is contained in:
parent
daddfd9b11
commit
b32537f210
1 changed files with 0 additions and 13 deletions
|
@ -12,7 +12,6 @@ import { fromFileUrl, join } from "@std/path";
|
||||||
import * as tls from "node:tls";
|
import * as tls from "node:tls";
|
||||||
import * as net from "node:net";
|
import * as net from "node:net";
|
||||||
import * as stream from "node:stream";
|
import * as stream from "node:stream";
|
||||||
import { text } from "node:stream/consumers";
|
|
||||||
import { execCode } from "../unit/test_util.ts";
|
import { execCode } from "../unit/test_util.ts";
|
||||||
|
|
||||||
const tlsTestdataDir = fromFileUrl(
|
const tlsTestdataDir = fromFileUrl(
|
||||||
|
@ -98,18 +97,6 @@ Connection: close
|
||||||
assertEquals(bodyText, "hello");
|
assertEquals(bodyText, "hello");
|
||||||
});
|
});
|
||||||
|
|
||||||
// Regression at https://github.com/denoland/deno/issues/27652
|
|
||||||
Deno.test("tls.connect makes tls connection to example.com", async () => {
|
|
||||||
const socket = tls.connect(443, "example.com");
|
|
||||||
await new Promise((resolve) => {
|
|
||||||
socket.on("secureConnect", resolve);
|
|
||||||
});
|
|
||||||
socket.write(
|
|
||||||
"GET / HTTP/1.1\r\nHost: example.com\r\nConnection: close\r\n\r\n",
|
|
||||||
);
|
|
||||||
assertStringIncludes(await text(socket), "<title>Example Domain</title>");
|
|
||||||
});
|
|
||||||
|
|
||||||
// https://github.com/denoland/deno/pull/20120
|
// https://github.com/denoland/deno/pull/20120
|
||||||
Deno.test("tls.connect mid-read tcp->tls upgrade", async () => {
|
Deno.test("tls.connect mid-read tcp->tls upgrade", async () => {
|
||||||
const { promise, resolve } = Promise.withResolvers<void>();
|
const { promise, resolve } = Promise.withResolvers<void>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue