Skip to content

Commit

Permalink
Merge pull request #207 from chris-rock/sasl
Browse files Browse the repository at this point in the history
update test to meet new sals separation between client and server
  • Loading branch information
lloydwatkin committed Dec 5, 2013
2 parents b10bf0f + dbbec03 commit 4e3444a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 171 deletions.
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -15,10 +15,10 @@
"blueimp-md5": ">= 1.0.0",
"browserify": "~2.35.0",
"brfs": "0.0.8",
"node-xmpp-component": "~0.1.0",
"node-xmpp-client": "~0.1.0",
"node-xmpp-server": "~0.1.0",
"node-xmpp-core": "~0.1.0"
"node-xmpp-component": "~0.1.1",
"node-xmpp-client": "~0.1.2",
"node-xmpp-server": "~0.2.2",
"node-xmpp-core": "~0.2.1"
},
"devDependencies": {
"mocha": ">=1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/bosh-test.js
Expand Up @@ -20,7 +20,7 @@ describe('BOSH client/server', function() {
svcl = svcl_
c2s = new C2SStream({ connection: svcl })
c2s.on('authenticate', function(opts, cb) {
cb()
cb(null, opts)
})
})

Expand Down
163 changes: 0 additions & 163 deletions test/sasl-test.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/server-event-test.js
Expand Up @@ -26,7 +26,7 @@ function startServer() {
// allow anything
client.on('authenticate', function(opts, cb) {
eventChain.push('authenticate')
cb(null)
cb(null, opts)
})

client.on('online', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/tcp-test.js
Expand Up @@ -21,7 +21,7 @@ describe('TCP client/server', function() {
svcl = svcl_
// Always authenticate
svcl.on('authenticate', function(opts, cb) {
cb()
cb(null, opts)
})
})
var cl
Expand Down
2 changes: 1 addition & 1 deletion test/tls-test.js
Expand Up @@ -39,7 +39,7 @@ function startServer(done) {
if ((opts.saslmech = 'PLAIN') &&
(opts.jid.toString() === user.jid) &&
(opts.password === user.password)) {
cb(false)
cb(null, opts)
} else {
cb(new Error('Authentication failure'))
}
Expand Down

0 comments on commit 4e3444a

Please sign in to comment.