Permalink
Browse files

fix(test): Stop server after build tests

  • Loading branch information...
RWOverdijk committed Jan 6, 2016
1 parent 309996e commit c1c7a1edd118877d8813064fa199886c02fb306f
Showing with 7 additions and 4 deletions.
  1. +2 −2 build/tasks/server.js
  2. +5 −2 build/tasks/test.js
@@ -20,7 +20,7 @@ module.exports = {
start: function(done) {
server = app.listen(1927, done);
},
stop: function() {
server.close();
stop: function(cb) {
server.close(cb);
}
};
@@ -11,8 +11,11 @@ gulp.task('test', ['lint'], function(done) {
configFile: __dirname + '/../../karma.conf.js',
singleRun: true
}, function() {
server.stop();
done();
server.stop(function () {
done();
process.exit();
});
});
karmaServer.start();

0 comments on commit c1c7a1e

Please sign in to comment.