Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix: FileTransportOptions type missing lazy:boolean option #2334

Merged
merged 11 commits into from
Jul 19, 2023
Prev Previous commit
Next Next commit
Update test/unit/winston/transports/01-file-maxsize.test.js
Co-authored-by: David Hyde <DABH@users.noreply.github.com>
  • Loading branch information
Pulkit0729 and DABH authored Jul 10, 2023
commit b4f7af0e416110d892dca4e6d0fe5759ae1c80b4
7 changes: 3 additions & 4 deletions test/unit/winston/transports/01-file-maxsize.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,11 @@ describe('File (maxsize)', function () {

// Listen to file close event called when the file is closed
lazyTransport.on('fileclosed', ()=>{
if(count === fillWith.length){
assumeFilesCreated();

if (count === fillWith.length) {
assumeFilesCreated();
return;
}
count+=1;
count += 1;
setImmediate(()=>{logKbytes(3);});
})

Expand Down