diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-08-02 21:44:01 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-08-02 21:51:40 +0200 |
commit | 69f224587e99d56008e1fa129d0641840a486620 (patch) | |
tree | fe30aa57b7340ec31491c58bd62eb75bfbd7f9e4 /server/tests/api/config.js | |
parent | d5f5a670fcf6258d0facf9a2fd3aabd550fbc78f (diff) | |
download | PeerTube-69f224587e99d56008e1fa129d0641840a486620.tar.gz PeerTube-69f224587e99d56008e1fa129d0641840a486620.tar.zst PeerTube-69f224587e99d56008e1fa129d0641840a486620.zip |
Fix tests
Diffstat (limited to 'server/tests/api/config.js')
-rw-r--r-- | server/tests/api/config.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/server/tests/api/config.js b/server/tests/api/config.js index f2c00f85a..052b3f036 100644 --- a/server/tests/api/config.js +++ b/server/tests/api/config.js | |||
@@ -44,19 +44,15 @@ describe('Test config', function () { | |||
44 | it('Should have a correct config on a server with registration enabled and a users limit', function (done) { | 44 | it('Should have a correct config on a server with registration enabled and a users limit', function (done) { |
45 | series([ | 45 | series([ |
46 | function (next) { | 46 | function (next) { |
47 | usersUtils.registerUser(server.url, 'user1', 'super password', done) | 47 | usersUtils.registerUser(server.url, 'user1', 'super password', next) |
48 | }, | 48 | }, |
49 | 49 | ||
50 | function (next) { | 50 | function (next) { |
51 | usersUtils.registerUser(server.url, 'user2', 'super password', done) | 51 | usersUtils.registerUser(server.url, 'user2', 'super password', next) |
52 | }, | 52 | }, |
53 | 53 | ||
54 | function (next) { | 54 | function (next) { |
55 | usersUtils.registerUser(server.url, 'user3', 'super password', done) | 55 | usersUtils.registerUser(server.url, 'user3', 'super password', next) |
56 | }, | ||
57 | |||
58 | function (next) { | ||
59 | usersUtils.registerUser(server.url, 'user4', 'super password', done) | ||
60 | } | 56 | } |
61 | 57 | ||
62 | ], function (err) { | 58 | ], function (err) { |
@@ -67,7 +63,7 @@ describe('Test config', function () { | |||
67 | 63 | ||
68 | const data = res.body | 64 | const data = res.body |
69 | 65 | ||
70 | expect(data.signup.allowed).to.be.truthy | 66 | expect(data.signup.allowed).to.be.false |
71 | 67 | ||
72 | done() | 68 | done() |
73 | }) | 69 | }) |