Skip to content

Commit f9ecaaa

Browse files
committed
fixup! add back flakey test
1 parent f7dd9a6 commit f9ecaaa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/unit/node/app.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,18 @@ describe("createApp", () => {
107107
app.dispose()
108108
})
109109

110+
it("should change the file mode of a socket", async () => {
111+
const defaultArgs = await setDefaults({
112+
socket: tmpFilePath,
113+
"socket-mode": "777",
114+
})
115+
116+
const app = await createApp(defaultArgs)
117+
118+
expect((await promises.stat(tmpFilePath)).mode & 0o777).toBe(0o777)
119+
app.dispose()
120+
})
121+
110122
it("should create an https server if args.cert exists", async () => {
111123
const testCertificate = await generateCertificate("localhost")
112124
const cert = new OptionalString(testCertificate.cert)

0 commit comments

Comments
 (0)