diff options
| author | 2023-05-28 17:20:32 -0300 | |
|---|---|---|
| committer | 2023-05-28 13:20:32 -0700 | |
| commit | 63e2d78e76d2af1e584b91f013011db8034fae2e (patch) | |
| tree | eb8ccce1705befc7474f103fcb7ff6617a638717 /test/harness.ts | |
| parent | 1388ec0d60e77cb0d71475fef33ab5764501b208 (diff) | |
| download | bun-63e2d78e76d2af1e584b91f013011db8034fae2e.tar.gz bun-63e2d78e76d2af1e584b91f013011db8034fae2e.tar.zst bun-63e2d78e76d2af1e584b91f013011db8034fae2e.zip | |
[node:net] fix createConnection options passing (#3101)
* fixup createConnection
* fix comment
* fixup comment
* also fix it on tls
Diffstat (limited to '')
| -rw-r--r-- | test/harness.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/harness.ts b/test/harness.ts index 72670156d..d29e4367c 100644 --- a/test/harness.ts +++ b/test/harness.ts @@ -1,8 +1,8 @@ import { gc as bunGC, unsafe } from "bun"; import { heapStats } from "bun:jsc"; import path from "path"; -import fs from 'fs'; -import os from 'os'; +import fs from "fs"; +import os from "os"; export const bunEnv: any = { ...process.env, @@ -129,8 +129,7 @@ export function bunRunAsScript(dir: string, script: string, env?: Record<string, }, }); - if (!result.success) - throw new Error(result.stderr.toString("utf8")); + if (!result.success) throw new Error(result.stderr.toString("utf8")); return { stdout: result.stdout.toString("utf8").trim(), |
