From c4a6efaf0fc8a5a9c03bd55416efd386ed6ceea9 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Mon, 20 Mar 2017 08:47:48 +1100 Subject: [PATCH] fix(test): exit listener test fix for new shutdown functions --- test/tap/dateFileAppender-test.js | 4 ++-- test/tap/fileAppender-test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/tap/dateFileAppender-test.js b/test/tap/dateFileAppender-test.js index 0c77c58..3a0024c 100644 --- a/test/tap/dateFileAppender-test.js +++ b/test/tap/dateFileAppender-test.js @@ -65,8 +65,8 @@ test('../../lib/appenders/dateFile', (batch) => { openedFiles.shift(); }; - this.write = function () { - return true; + this.write = function (data, encoding, cb) { + return cb(); }; } } diff --git a/test/tap/fileAppender-test.js b/test/tap/fileAppender-test.js index 1a96892..1d5b817 100644 --- a/test/tap/fileAppender-test.js +++ b/test/tap/fileAppender-test.js @@ -68,8 +68,8 @@ test('log4js fileAppender', (batch) => { openedFiles.shift(); }; - this.write = function () { - return true; + this.write = function (data, encoding, cb) { + return cb(); }; this.on = function () {