aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/singlePod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-13 15:27:31 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-13 15:27:31 +0200
commitb6c6f935d4eb3692cfd7f79a66cc40e0fef69256 (patch)
tree43c019213e98994f3a6479f00e460e100baf1fb9 /server/tests/api/singlePod.js
parentd6ea0175cbfc9995c3b2ec23866f7abafa9e3904 (diff)
downloadPeerTube-b6c6f935d4eb3692cfd7f79a66cc40e0fef69256.tar.gz
PeerTube-b6c6f935d4eb3692cfd7f79a66cc40e0fef69256.tar.zst
PeerTube-b6c6f935d4eb3692cfd7f79a66cc40e0fef69256.zip
Fix typos in server tests
Diffstat (limited to 'server/tests/api/singlePod.js')
-rw-r--r--server/tests/api/singlePod.js7
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 })