diff options
author | Chocobozzz <me@florianbigard.com> | 2021-09-06 08:13:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-09-06 08:13:11 +0200 |
commit | 70430c2796b6c0455a863edc62760a3d45951fc5 (patch) | |
tree | 7620d5a8db0c9b6cbf5a11d1c794875402828789 /server/tests/api | |
parent | 6d210220be0875d63461829d83c6e3a59d05cf7a (diff) | |
download | PeerTube-70430c2796b6c0455a863edc62760a3d45951fc5.tar.gz PeerTube-70430c2796b6c0455a863edc62760a3d45951fc5.tar.zst PeerTube-70430c2796b6c0455a863edc62760a3d45951fc5.zip |
Wait mock server termination
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/object-storage/videos.ts | 6 | ||||
-rw-r--r-- | server/tests/api/server/proxy.ts | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/object-storage/videos.ts b/server/tests/api/object-storage/videos.ts index 6c9c224eb..6e6392181 100644 --- a/server/tests/api/object-storage/videos.ts +++ b/server/tests/api/object-storage/videos.ts | |||
@@ -243,7 +243,7 @@ function runTestSuite (options: { | |||
243 | }) | 243 | }) |
244 | 244 | ||
245 | after(async function () { | 245 | after(async function () { |
246 | mockObjectStorage.terminate() | 246 | await mockObjectStorage.terminate() |
247 | 247 | ||
248 | await cleanupTests(servers) | 248 | await cleanupTests(servers) |
249 | }) | 249 | }) |
@@ -380,8 +380,8 @@ describe('Object storage for videos', function () { | |||
380 | playlistBucket: 'mybucket', | 380 | playlistBucket: 'mybucket', |
381 | webtorrentBucket: 'mybucket', | 381 | webtorrentBucket: 'mybucket', |
382 | 382 | ||
383 | playlistPrefix: 'streaming-playlists_', | 383 | playlistPrefix: 'streaming-playlists/', |
384 | webtorrentPrefix: 'webtorrent_', | 384 | webtorrentPrefix: 'webtorrent/', |
385 | 385 | ||
386 | useMockBaseUrl: true | 386 | useMockBaseUrl: true |
387 | }) | 387 | }) |
diff --git a/server/tests/api/server/proxy.ts b/server/tests/api/server/proxy.ts index d5042ef27..72bd49078 100644 --- a/server/tests/api/server/proxy.ts +++ b/server/tests/api/server/proxy.ts | |||
@@ -65,7 +65,7 @@ describe('Test proxy', function () { | |||
65 | }) | 65 | }) |
66 | 66 | ||
67 | after(async function () { | 67 | after(async function () { |
68 | proxy.terminate() | 68 | await proxy.terminate() |
69 | 69 | ||
70 | await cleanupTests(servers) | 70 | await cleanupTests(servers) |
71 | }) | 71 | }) |