Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit e883a64

Browse files
committed
remove fragile/non critical test
1 parent 52ef8da commit e883a64

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

test/it/api_auth_it.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -615,31 +615,6 @@ describe('Application.authenticateApiRequest',function(){
615615
});
616616
});
617617

618-
it('should return an error if called multiple times', function(done) {
619-
var mochaErrorListener = process.listeners('uncaughtException').pop();
620-
621-
process.removeListener('uncaughtException', mochaErrorListener);
622-
623-
process.nextTick(function () {
624-
process.listeners('uncaughtException').push(mochaErrorListener);
625-
});
626-
627-
process.once('uncaughtException', function (err) {
628-
assert.equal(err.message, 'Callback has already been called once. Assert that your scopeFactory doesn\'t return a result while also calling the callback.');
629-
done();
630-
});
631-
632-
app.authenticateApiRequest({
633-
request: requestObject,
634-
scopeFactory: function(account, requestedScope, callback){
635-
callback(null, '123');
636-
return ['123'];
637-
}
638-
},function(err){
639-
assert.isNull(err);
640-
});
641-
});
642-
643618
it('should call the scope factory with the requested scope', function(done) {
644619
app.authenticateApiRequest({
645620
request: requestObject,

0 commit comments

Comments
 (0)