diff options
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r-- | server/tests/api/check-params/contact-form.ts | 4 | ||||
-rw-r--r-- | server/tests/api/check-params/users.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/check-params/contact-form.ts b/server/tests/api/check-params/contact-form.ts index fb30766d9..5539266b8 100644 --- a/server/tests/api/check-params/contact-form.ts +++ b/server/tests/api/check-params/contact-form.ts | |||
@@ -36,7 +36,7 @@ describe('Test contact form API validators', function () { | |||
36 | it('Should not accept a contact form if it is disabled in the configuration', async function () { | 36 | it('Should not accept a contact form if it is disabled in the configuration', async function () { |
37 | this.timeout(10000) | 37 | this.timeout(10000) |
38 | 38 | ||
39 | killallServers([ server ]) | 39 | await killallServers([ server ]) |
40 | 40 | ||
41 | // Contact form is disabled | 41 | // Contact form is disabled |
42 | await reRunServer(server, { smtp: { hostname: 'localhost', port: emailPort }, contact_form: { enabled: false } }) | 42 | await reRunServer(server, { smtp: { hostname: 'localhost', port: emailPort }, contact_form: { enabled: false } }) |
@@ -46,7 +46,7 @@ describe('Test contact form API validators', function () { | |||
46 | it('Should not accept a contact form if from email is invalid', async function () { | 46 | it('Should not accept a contact form if from email is invalid', async function () { |
47 | this.timeout(10000) | 47 | this.timeout(10000) |
48 | 48 | ||
49 | killallServers([ server ]) | 49 | await killallServers([ server ]) |
50 | 50 | ||
51 | // Email & contact form enabled | 51 | // Email & contact form enabled |
52 | await reRunServer(server, { smtp: { hostname: 'localhost', port: emailPort } }) | 52 | await reRunServer(server, { smtp: { hostname: 'localhost', port: emailPort } }) |
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts index 88fc8e8b1..bffe29bce 100644 --- a/server/tests/api/check-params/users.ts +++ b/server/tests/api/check-params/users.ts | |||
@@ -237,7 +237,7 @@ describe('Test users API validators', function () { | |||
237 | it('Should succeed with no password on a server with smtp enabled', async function () { | 237 | it('Should succeed with no password on a server with smtp enabled', async function () { |
238 | this.timeout(20000) | 238 | this.timeout(20000) |
239 | 239 | ||
240 | killallServers([ server ]) | 240 | await killallServers([ server ]) |
241 | 241 | ||
242 | const config = immutableAssign(overrideConfig, { | 242 | const config = immutableAssign(overrideConfig, { |
243 | smtp: { | 243 | smtp: { |