diff options
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/multiplePods.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/server/tests/api/multiplePods.js b/server/tests/api/multiplePods.js index adc99f714..4a4532a0f 100644 --- a/server/tests/api/multiplePods.js +++ b/server/tests/api/multiplePods.js | |||
@@ -193,14 +193,23 @@ describe('Test multiple pods', function () { | |||
193 | expect(videos).to.be.an('array') | 193 | expect(videos).to.be.an('array') |
194 | expect(videos.length).to.equal(4) | 194 | expect(videos.length).to.equal(4) |
195 | 195 | ||
196 | const video1 = videos[2] | 196 | // We not sure about the order of the two last uploads |
197 | let video1 = null | ||
198 | let video2 = null | ||
199 | if (videos[2].name === 'my super name for pod 3') { | ||
200 | video1 = videos[2] | ||
201 | video2 = videos[3] | ||
202 | } else { | ||
203 | video1 = videos[3] | ||
204 | video2 = videos[2] | ||
205 | } | ||
206 | |||
197 | expect(video1.name).to.equal('my super name for pod 3') | 207 | expect(video1.name).to.equal('my super name for pod 3') |
198 | expect(video1.description).to.equal('my super description for pod 3') | 208 | expect(video1.description).to.equal('my super description for pod 3') |
199 | expect(video1.podUrl).to.equal('http://localhost:9003') | 209 | expect(video1.podUrl).to.equal('http://localhost:9003') |
200 | expect(video1.magnetUri).to.exist | 210 | expect(video1.magnetUri).to.exist |
201 | expect(video1.duration).to.equal(5) | 211 | expect(video1.duration).to.equal(5) |
202 | 212 | ||
203 | const video2 = videos[3] | ||
204 | expect(video2.name).to.equal('my super name for pod 3-2') | 213 | expect(video2.name).to.equal('my super name for pod 3-2') |
205 | expect(video2.description).to.equal('my super description for pod 3-2') | 214 | expect(video2.description).to.equal('my super description for pod 3-2') |
206 | expect(video2.podUrl).to.equal('http://localhost:9003') | 215 | expect(video2.podUrl).to.equal('http://localhost:9003') |