Skip to content

Commit

Permalink
Clean up tar file at the end of WriteEntry_LongFileSizeAsync test
Browse files Browse the repository at this point in the history
Otherwise multiple tar files could stick around for some time, contributing to issues like dotnet#77012
  • Loading branch information
akoeplinger committed Dec 22, 2022
1 parent cd599ec commit 8773a30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public void WriteEntry_LongFileSize(TarEntryFormat entryFormat, long size, bool
Assert.Equal(size, dataStream.Position);

Assert.Null(reader.GetNextEntry());
tarFile.Close();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public async Task WriteEntry_LongFileSizeAsync(TarEntryFormat entryFormat, long
Assert.Equal(size, dataStream.Position);

Assert.Null(await reader.GetNextEntryAsync());
tarFile.Close();
}
}
}

0 comments on commit 8773a30

Please sign in to comment.