Skip to content
Browse files

change port number to make travis ci pass

  • Loading branch information...
1 parent 25fc5de commit 0c979bd038121b6346e9c90991660f2f3245745f @gillesruppert committed Aug 24, 2012
Showing with 14 additions and 14 deletions.
  1. +7 −7 test/connect-test.js
  2. +7 −7 test/express-test.js
View
14 test/connect-test.js
@@ -11,17 +11,17 @@ describe('connect middleware', function() {
it('should return the compiled file when requesting a valid url ', function(done) {
var path = normalize(__dirname + '/fixtures/main.js');
- var server = connect().use(webmakeMw('/test.js', path)).listen(3000, function(err) {
+ var server = connect().use(webmakeMw('/test.js', path)).listen(51234, function(err) {
if (err) throw err;
- http.get('http://localhost:3000/test.js', helpers.successResponseCallback(done, server.close.bind(server)));
+ http.get('http://localhost:51234/test.js', helpers.successResponseCallback(done, server.close.bind(server)));
});
});
it('should return a 500 response when webmake has a problem with compiling the script', function(done) {
var path = normalize(__dirname + '/fixtures/err.js');
- var server = connect().use(webmakeMw('/error.js', path)).listen(3000, function(err) {
+ var server = connect().use(webmakeMw('/error.js', path)).listen(51234, function(err) {
if (err) throw err;
- http.get('http://localhost:3000/error.js', helpers.failureResponseCallback(done, server.close.bind(server)));
+ http.get('http://localhost:51234/error.js', helpers.failureResponseCallback(done, server.close.bind(server)));
});
});
@@ -30,11 +30,11 @@ describe('connect middleware', function() {
'/test1.js': normalize(__dirname + '/fixtures/main.js'),
'/test2.js': normalize(__dirname + '/fixtures/page2.js')
};
- var server = connect().use(webmakeMw(config)).listen(3000);
+ var server = connect().use(webmakeMw(config)).listen(51234);
async.parallel([
- function(cb) { http.get('http://localhost:3000/test1.js', helpers.successResponseCallback(cb)); },
- function(cb) { http.get('http://localhost:3000/test2.js', helpers.successResponseCallback(cb)); }
+ function(cb) { http.get('http://localhost:51234/test1.js', helpers.successResponseCallback(cb)); },
+ function(cb) { http.get('http://localhost:51234/test2.js', helpers.successResponseCallback(cb)); }
], function(err) {
if (err) throw err;
server.close(done);
View
14 test/express-test.js
@@ -11,17 +11,17 @@ describe('express framework', function() {
it('should return the compiled file when requesting a valid url ', function(done) {
var path = normalize(__dirname + '/fixtures/main.js');
- var server = express().use(webmakeMw('/test.js', path)).listen(3000, function(err) {
+ var server = express().use(webmakeMw('/test.js', path)).listen(51234, function(err) {
if (err) throw err;
- http.get('http://localhost:3000/test.js', helpers.successResponseCallback(done, server.close.bind(server)));
+ http.get('http://localhost:51234/test.js', helpers.successResponseCallback(done, server.close.bind(server)));
});
});
it('should return a 500 response when webmake has a problem with compiling the script', function(done) {
var path = normalize(__dirname + '/fixtures/err.js');
- var server = express().use(webmakeMw('/error.js', path)).listen(3000, function(err) {
+ var server = express().use(webmakeMw('/error.js', path)).listen(51234, function(err) {
if (err) throw err;
- http.get('http://localhost:3000/error.js', helpers.failureResponseCallback(done, server.close.bind(server)));
+ http.get('http://localhost:51234/error.js', helpers.failureResponseCallback(done, server.close.bind(server)));
});
});
@@ -30,11 +30,11 @@ describe('express framework', function() {
'/test1.js': normalize(__dirname + '/fixtures/main.js'),
'/test2.js': normalize(__dirname + '/fixtures/page2.js')
};
- var server = express().use(webmakeMw(config)).listen(3000);
+ var server = express().use(webmakeMw(config)).listen(51234);
async.parallel([
- function(cb) { http.get('http://localhost:3000/test1.js', helpers.successResponseCallback(cb)); },
- function(cb) { http.get('http://localhost:3000/test2.js', helpers.successResponseCallback(cb)); }
+ function(cb) { http.get('http://localhost:51234/test1.js', helpers.successResponseCallback(cb)); },
+ function(cb) { http.get('http://localhost:51234/test2.js', helpers.successResponseCallback(cb)); }
], function(err) {
if (err) throw err;
server.close(done);

0 comments on commit 0c979bd

Please sign in to comment.
Something went wrong with that request. Please try again.