diff options
Diffstat (limited to 'server/tests/api/singlePod.js')
-rw-r--r-- | server/tests/api/singlePod.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/tests/api/singlePod.js b/server/tests/api/singlePod.js index 542dea430..0d0e6a82e 100644 --- a/server/tests/api/singlePod.js +++ b/server/tests/api/singlePod.js | |||
@@ -32,7 +32,7 @@ describe('Test a single pod', function () { | |||
32 | function (next) { | 32 | function (next) { |
33 | utils.loginAndGetAccessToken(server, function (err, token) { | 33 | utils.loginAndGetAccessToken(server, function (err, token) { |
34 | if (err) throw err | 34 | if (err) throw err |
35 | server.access_token = token | 35 | server.accessToken = token |
36 | next() | 36 | next() |
37 | }) | 37 | }) |
38 | }, | 38 | }, |
@@ -55,7 +55,7 @@ describe('Test a single pod', function () { | |||
55 | 55 | ||
56 | it('Should upload the video', function (done) { | 56 | it('Should upload the video', function (done) { |
57 | this.timeout(5000) | 57 | this.timeout(5000) |
58 | utils.uploadVideo(server.url, server.access_token, 'my super name', 'my super description', 'video_short.webm', done) | 58 | utils.uploadVideo(server.url, server.accessToken, 'my super name', 'my super description', 'video_short.webm', done) |
59 | }) | 59 | }) |
60 | 60 | ||
61 | it('Should seed the uploaded video', function (done) { | 61 | it('Should seed the uploaded video', function (done) { |
@@ -87,7 +87,8 @@ describe('Test a single pod', function () { | |||
87 | expect(torrent.files.length).to.equal(1) | 87 | expect(torrent.files.length).to.equal(1) |
88 | expect(torrent.files[0].path).to.exist.and.to.not.equal('') | 88 | expect(torrent.files[0].path).to.exist.and.to.not.equal('') |
89 | 89 | ||
90 | done() | 90 | // We remove it because we'll add it again |
91 | webtorrent.remove(video.magnetUri, done) | ||
91 | }) | 92 | }) |
92 | }) | 93 | }) |
93 | }) | 94 | }) |