From f9ecaaa882f5b7c8bb838d65cd19be6f93691d10 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 20 Sep 2022 14:32:59 -0700 Subject: [PATCH] fixup! add back flakey test --- test/unit/node/app.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/unit/node/app.test.ts b/test/unit/node/app.test.ts index a8b1dbd3a..b2c169a2e 100644 --- a/test/unit/node/app.test.ts +++ b/test/unit/node/app.test.ts @@ -107,6 +107,18 @@ describe("createApp", () => { app.dispose() }) + it("should change the file mode of a socket", async () => { + const defaultArgs = await setDefaults({ + socket: tmpFilePath, + "socket-mode": "777", + }) + + const app = await createApp(defaultArgs) + + expect((await promises.stat(tmpFilePath)).mode & 0o777).toBe(0o777) + app.dispose() + }) + it("should create an https server if args.cert exists", async () => { const testCertificate = await generateCertificate("localhost") const cert = new OptionalString(testCertificate.cert)