diff options
Diffstat (limited to 'server/tests/api/users')
-rw-r--r-- | server/tests/api/users/users-multiple-servers.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/tests/api/users/users-multiple-servers.ts b/server/tests/api/users/users-multiple-servers.ts index 575e04546..b67072851 100644 --- a/server/tests/api/users/users-multiple-servers.ts +++ b/server/tests/api/users/users-multiple-servers.ts | |||
@@ -27,6 +27,7 @@ describe('Test users with multiple servers', function () { | |||
27 | let servers: ServerInfo[] = [] | 27 | let servers: ServerInfo[] = [] |
28 | let user: User | 28 | let user: User |
29 | let userAccountName: string | 29 | let userAccountName: string |
30 | let userAccountUUID: string | ||
30 | let userVideoChannelUUID: string | 31 | let userVideoChannelUUID: string |
31 | let userId: number | 32 | let userId: number |
32 | let videoUUID: string | 33 | let videoUUID: string |
@@ -62,7 +63,9 @@ describe('Test users with multiple servers', function () { | |||
62 | 63 | ||
63 | { | 64 | { |
64 | const res = await getMyUserInformation(servers[0].url, userAccessToken) | 65 | const res = await getMyUserInformation(servers[0].url, userAccessToken) |
65 | userAccountName = res.body.account.name + '@' + res.body.account.host | 66 | const account: Account = res.body.account |
67 | userAccountName = account.name + '@' + account.host | ||
68 | userAccountUUID = account.uuid | ||
66 | } | 69 | } |
67 | 70 | ||
68 | { | 71 | { |
@@ -196,7 +199,7 @@ describe('Test users with multiple servers', function () { | |||
196 | 199 | ||
197 | it('Should not have actor files', async () => { | 200 | it('Should not have actor files', async () => { |
198 | for (const server of servers) { | 201 | for (const server of servers) { |
199 | await checkActorFilesWereRemoved(userAccountName, server.serverNumber) | 202 | await checkActorFilesWereRemoved(userAccountUUID, server.serverNumber) |
200 | await checkActorFilesWereRemoved(userVideoChannelUUID, server.serverNumber) | 203 | await checkActorFilesWereRemoved(userVideoChannelUUID, server.serverNumber) |
201 | } | 204 | } |
202 | }) | 205 | }) |