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 () {