diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-31 09:58:03 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-31 11:32:04 +0200 |
commit | 20516920d2b72c8a18bc24b9740f7176aa962da2 (patch) | |
tree | 02bdd8245d7ce913236f05cd036a32683ca499db /server/tests/api/notifications/moderation-notifications.ts | |
parent | f9e1ca7087fc855daa62d64f19225f57632811d3 (diff) | |
download | PeerTube-20516920d2b72c8a18bc24b9740f7176aa962da2.tar.gz PeerTube-20516920d2b72c8a18bc24b9740f7176aa962da2.tar.zst PeerTube-20516920d2b72c8a18bc24b9740f7176aa962da2.zip |
Increase timeout for moderation notifications
Diffstat (limited to 'server/tests/api/notifications/moderation-notifications.ts')
-rw-r--r-- | server/tests/api/notifications/moderation-notifications.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts index a8517600a..9faaacb91 100644 --- a/server/tests/api/notifications/moderation-notifications.ts +++ b/server/tests/api/notifications/moderation-notifications.ts | |||
@@ -78,7 +78,7 @@ describe('Test moderation notifications', function () { | |||
78 | }) | 78 | }) |
79 | 79 | ||
80 | it('Should send a notification to moderators on local video abuse', async function () { | 80 | it('Should send a notification to moderators on local video abuse', async function () { |
81 | this.timeout(10000) | 81 | this.timeout(20000) |
82 | 82 | ||
83 | const name = 'video for abuse ' + uuidv4() | 83 | const name = 'video for abuse ' + uuidv4() |
84 | const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name }) | 84 | const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name }) |
@@ -91,7 +91,7 @@ describe('Test moderation notifications', function () { | |||
91 | }) | 91 | }) |
92 | 92 | ||
93 | it('Should send a notification to moderators on remote video abuse', async function () { | 93 | it('Should send a notification to moderators on remote video abuse', async function () { |
94 | this.timeout(10000) | 94 | this.timeout(20000) |
95 | 95 | ||
96 | const name = 'video for abuse ' + uuidv4() | 96 | const name = 'video for abuse ' + uuidv4() |
97 | const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name }) | 97 | const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name }) |
@@ -107,7 +107,7 @@ describe('Test moderation notifications', function () { | |||
107 | }) | 107 | }) |
108 | 108 | ||
109 | it('Should send a notification to moderators on local comment abuse', async function () { | 109 | it('Should send a notification to moderators on local comment abuse', async function () { |
110 | this.timeout(10000) | 110 | this.timeout(20000) |
111 | 111 | ||
112 | const name = 'video for abuse ' + uuidv4() | 112 | const name = 'video for abuse ' + uuidv4() |
113 | const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name }) | 113 | const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name }) |
@@ -122,7 +122,7 @@ describe('Test moderation notifications', function () { | |||
122 | }) | 122 | }) |
123 | 123 | ||
124 | it('Should send a notification to moderators on remote comment abuse', async function () { | 124 | it('Should send a notification to moderators on remote comment abuse', async function () { |
125 | this.timeout(10000) | 125 | this.timeout(20000) |
126 | 126 | ||
127 | const name = 'video for abuse ' + uuidv4() | 127 | const name = 'video for abuse ' + uuidv4() |
128 | const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name }) | 128 | const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name }) |
@@ -140,7 +140,7 @@ describe('Test moderation notifications', function () { | |||
140 | }) | 140 | }) |
141 | 141 | ||
142 | it('Should send a notification to moderators on local account abuse', async function () { | 142 | it('Should send a notification to moderators on local account abuse', async function () { |
143 | this.timeout(10000) | 143 | this.timeout(20000) |
144 | 144 | ||
145 | const username = 'user' + new Date().getTime() | 145 | const username = 'user' + new Date().getTime() |
146 | const resUser = await createUser({ url: servers[0].url, accessToken: servers[0].accessToken, username, password: 'donald' }) | 146 | const resUser = await createUser({ url: servers[0].url, accessToken: servers[0].accessToken, username, password: 'donald' }) |
@@ -153,7 +153,7 @@ describe('Test moderation notifications', function () { | |||
153 | }) | 153 | }) |
154 | 154 | ||
155 | it('Should send a notification to moderators on remote account abuse', async function () { | 155 | it('Should send a notification to moderators on remote account abuse', async function () { |
156 | this.timeout(10000) | 156 | this.timeout(20000) |
157 | 157 | ||
158 | const username = 'user' + new Date().getTime() | 158 | const username = 'user' + new Date().getTime() |
159 | const tmpToken = await generateUserAccessToken(servers[0], username) | 159 | const tmpToken = await generateUserAccessToken(servers[0], username) |