Skip to content

Commit 8aa623c

Browse files
committed
Improve test stability.
Test cancellation may cause empty line appending to the log file, so clean-up process must skip empty line.
1 parent 9e5ddfb commit 8aa623c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/MsgPack/Serialization/SerializerDebugging.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ public static void DeletePastTemporaries()
296296

297297
foreach ( var pastAssembly in File.ReadAllLines( historyFilePath ) )
298298
{
299-
File.Delete( pastAssembly );
299+
if ( !String.IsNullOrEmpty( pastAssembly ) )
300+
{
301+
File.Delete( pastAssembly );
302+
}
300303
}
301304

302305
new FileStream( historyFilePath, FileMode.Truncate ).Close();

0 commit comments

Comments
 (0)