Permalink
Browse files

fixed the roster functionnal test

  • Loading branch information...
julien51 committed Dec 2, 2011
1 parent 5703a18 commit cfdb4e91eda93aa1bd265e3abe31b842d812afb5
Showing with 8 additions and 1 deletion.
  1. +8 −1 test/functional/roster.js
@@ -1,8 +1,9 @@
/**
* This attempts to connect to the XMPP server and tests the roster features
**/
-var sys = require('sys');
var xmpp = require('node-xmpp');
+var server = require('../../lib/server.js');
+
var _ = require('underscore');
var User = require('../../lib/users.js').User;
@@ -12,6 +13,12 @@ fixtures = [["bernard@localhost", "bErnArD"]]; // Fixtures
describe('Connect client', function(){
var cl = null;
+ before(function(proceed) {
+ server.run({port: 5222, domain: 'localhost'}, function() {
+ proceed();
+ });
+ });
+
beforeEach(function(proceed){
var ready = _.after(fixtures.length, function() {
cl = new xmpp.Client({jid: "bernard@localhost", password: "bErnArD"});

0 comments on commit cfdb4e9

Please sign in to comment.