Skip to content

Commit 6a1c197

Browse files
committed
chore(tests): fix tests
1 parent a2e13d7 commit 6a1c197

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

test/acl.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const { json } = require('./common')
99
const TEST_APP = path.join(__dirname, 'fixtures/test-server-acl/server.js')
1010

1111
describe('ACL', function() {
12+
this.timeout(10000)
1213
let app = null
1314

1415
before(function(done) {

test/mixin.test.js

-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const path = require('path')
66
const { requireUncached } = require('./common')
77

88
const TEST_APP = path.join(__dirname, 'fixtures/test-server/server.js')
9-
const DELAY = 200
109

1110
describe('Mixin', function() {
1211
let app = null
@@ -33,7 +32,6 @@ describe('Mixin', function() {
3332
this.sinon.spy(app.models.Client, 'consumeAllItems')
3433
this.sinon.spy(app.models.Client, 'consumeNewItems')
3534
return app.models.Item.publishItem('a message')
36-
.delay(DELAY)
3735
})
3836

3937
it('should call the relevant consumers when a mesage is received', function() {
@@ -50,7 +48,6 @@ describe('Mixin', function() {
5048
this.sinon.spy(app.models.Client, 'consumeAllItems')
5149
this.sinon.spy(app.models.Client, 'consumeNewItems')
5250
return app.models.Item.publishItem('a message', 'item.write.created')
53-
.delay(DELAY)
5451
})
5552
it('should call the relevant consumers when a mesage is received', function() {
5653
expect(app.models.Client.consumeAllItems.calledOnce).to.be.true()

0 commit comments

Comments
 (0)