diff options
Diffstat (limited to 'server/tests/api/search/search-index.ts')
-rw-r--r-- | server/tests/api/search/search-index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/search/search-index.ts b/server/tests/api/search/search-index.ts index 306f84c3a..d5dc40f60 100644 --- a/server/tests/api/search/search-index.ts +++ b/server/tests/api/search/search-index.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { cleanupTests, flushAndRunServer, SearchCommand, ServerInfo, setAccessTokensToServers, uploadVideo } from '@shared/extra-utils' | 5 | import { cleanupTests, flushAndRunServer, SearchCommand, ServerInfo, setAccessTokensToServers } from '@shared/extra-utils' |
6 | import { BooleanBothQuery, VideoPlaylistPrivacy, VideoPlaylistType, VideosSearchQuery } from '@shared/models' | 6 | import { BooleanBothQuery, VideoPlaylistPrivacy, VideoPlaylistType, VideosSearchQuery } from '@shared/models' |
7 | 7 | ||
8 | const expect = chai.expect | 8 | const expect = chai.expect |
@@ -20,7 +20,7 @@ describe('Test videos search', function () { | |||
20 | 20 | ||
21 | await setAccessTokensToServers([ server ]) | 21 | await setAccessTokensToServers([ server ]) |
22 | 22 | ||
23 | await uploadVideo(server.url, server.accessToken, { name: localVideoName }) | 23 | await server.videosCommand.upload({ attributes: { name: localVideoName } }) |
24 | 24 | ||
25 | command = server.searchCommand | 25 | command = server.searchCommand |
26 | }) | 26 | }) |