diff options
Diffstat (limited to 'server/tests/utils')
-rw-r--r-- | server/tests/utils/servers.js | 4 | ||||
-rw-r--r-- | server/tests/utils/videos.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/utils/servers.js b/server/tests/utils/servers.js index 01c9a2f39..4e55f8f5c 100644 --- a/server/tests/utils/servers.js +++ b/server/tests/utils/servers.js | |||
@@ -60,12 +60,12 @@ function runServer (number, callback) { | |||
60 | 60 | ||
61 | // These actions are async so we need to be sure that they have both been done | 61 | // These actions are async so we need to be sure that they have both been done |
62 | const serverRunString = { | 62 | const serverRunString = { |
63 | 'Connected to mongodb': false, | 63 | 'Database is ready': false, |
64 | 'Server listening on port': false | 64 | 'Server listening on port': false |
65 | } | 65 | } |
66 | 66 | ||
67 | const regexps = { | 67 | const regexps = { |
68 | client_id: 'Client id: ([a-f0-9]+)', | 68 | client_id: 'Client id: (.+)', |
69 | client_secret: 'Client secret: (.+)', | 69 | client_secret: 'Client secret: (.+)', |
70 | user_username: 'Username: (.+)', | 70 | user_username: 'Username: (.+)', |
71 | user_password: 'User password: (.+)' | 71 | user_password: 'User password: (.+)' |
diff --git a/server/tests/utils/videos.js b/server/tests/utils/videos.js index 536093db1..5c120597f 100644 --- a/server/tests/utils/videos.js +++ b/server/tests/utils/videos.js | |||
@@ -25,7 +25,7 @@ function getAllVideosListBy (url, end) { | |||
25 | 25 | ||
26 | request(url) | 26 | request(url) |
27 | .get(path) | 27 | .get(path) |
28 | .query({ sort: 'createdDate' }) | 28 | .query({ sort: 'createdAt' }) |
29 | .query({ start: 0 }) | 29 | .query({ start: 0 }) |
30 | .query({ count: 10000 }) | 30 | .query({ count: 10000 }) |
31 | .set('Accept', 'application/json') | 31 | .set('Accept', 'application/json') |