diff options
Diffstat (limited to 'server/tests/api/server/email.ts')
-rw-r--r-- | server/tests/api/server/email.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/server/email.ts b/server/tests/api/server/email.ts index 258e835e7..b202cf8a7 100644 --- a/server/tests/api/server/email.ts +++ b/server/tests/api/server/email.ts | |||
@@ -3,12 +3,12 @@ | |||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { HttpStatusCode } from '@shared/core-utils' | 5 | import { HttpStatusCode } from '@shared/core-utils' |
6 | import { cleanupTests, flushAndRunServer, MockSmtpServer, ServerInfo, setAccessTokensToServers, waitJobs } from '@shared/extra-utils' | 6 | import { cleanupTests, createSingleServer, MockSmtpServer, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils' |
7 | 7 | ||
8 | const expect = chai.expect | 8 | const expect = chai.expect |
9 | 9 | ||
10 | describe('Test emails', function () { | 10 | describe('Test emails', function () { |
11 | let server: ServerInfo | 11 | let server: PeerTubeServer |
12 | let userId: number | 12 | let userId: number |
13 | let userId2: number | 13 | let userId2: number |
14 | let userAccessToken: string | 14 | let userAccessToken: string |
@@ -39,7 +39,7 @@ describe('Test emails', function () { | |||
39 | port: emailPort | 39 | port: emailPort |
40 | } | 40 | } |
41 | } | 41 | } |
42 | server = await flushAndRunServer(1, overrideConfig) | 42 | server = await createSingleServer(1, overrideConfig) |
43 | await setAccessTokensToServers([ server ]) | 43 | await setAccessTokensToServers([ server ]) |
44 | 44 | ||
45 | { | 45 | { |