diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-23 10:30:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | 240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e (patch) | |
tree | 99879ddce7d4b2970c263cb045c5057ed07354d4 /server/tests/api/users/users-multiple-servers.ts | |
parent | 83e6519ba4ee752dc3148a16c69effbfccb13e6b (diff) | |
download | PeerTube-240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e.tar.gz PeerTube-240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e.tar.zst PeerTube-240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e.zip |
Fix tests
Diffstat (limited to 'server/tests/api/users/users-multiple-servers.ts')
-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 | }) |