mirror of
https://github.com/cdr/code-server.git
synced 2025-12-07 17:02:27 +01:00
fixup! add back flakey test
This commit is contained in:
parent
f7dd9a672d
commit
f9ecaaa882
1 changed files with 12 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue