From eddef2f197e4b071c0a69696db46024208b2b61d Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 23 May 2014 18:03:50 -0700 Subject: [PATCH] print out warning messages in tests --- test/server.js | 4 ++++ test/udp-server.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/server.js b/test/server.js index 5d836d6..a8f7fa2 100644 --- a/test/server.js +++ b/test/server.js @@ -17,6 +17,10 @@ test('server', function (t) { t.fail(err.message) }) + server.on('warning', function (err) { + t.fail(err.message) + }) + server.on('complete', function () {}) server.on('update', function () {}) server.on('stop', function () {}) diff --git a/test/udp-server.js b/test/udp-server.js index 94a6ecf..a4ed48b 100644 --- a/test/udp-server.js +++ b/test/udp-server.js @@ -17,6 +17,10 @@ test('server', function (t) { t.fail(err.message) }) + server.on('warning', function (err) { + t.fail(err.message) + }) + server.on('complete', function () {}) server.on('update', function () {}) server.on('stop', function () {})