fixed tests to cover writestream

This commit is contained in:
Gareth Jones
2011-07-17 20:49:39 +10:00
parent 3d27140a9d
commit 71fe001278
2 changed files with 90 additions and 72 deletions

View File

@@ -289,7 +289,7 @@ function fileAppender (file, layout, logSize, numBackups, filePollInterval) {
setupLogRolling(logFile, file, logSize, numBackups || 5, (filePollInterval * 1000) || 30000);
}
//close the file on process exit, otherwise the process won't die.
//close the file on process exit.
process.on('exit', function() {
logFile.end();
logFile.destroySoon();