Permalink
Browse files

[test] Make exit codes more specific

When an uncaught exception is thrown, `node ` exits with `1`. Make it
clear that exits are cause by listening errors.
  • Loading branch information...
1 parent 185bbf3 commit f0b95277926775d0052b981ff475bb229b9d1c0c @mmalecki mmalecki committed May 15, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/fixtures/multi-server.js
View
6 test/fixtures/multi-server.js
@@ -15,15 +15,15 @@ var server3 = net.createServer(function (socket) {
});
server1.addListener('error', function (err) {
- process.exit(1);
+ process.exit(101);
});
server2.addListener('error', function (err) {
- process.exit(2);
+ process.exit(102);
});
server3.addListener('error', function (err) {
- process.exit(3);
+ process.exit(103);
});
//

0 comments on commit f0b9527

Please sign in to comment.