logging: improve the AsyncFileWriterTest discard test