1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

Fix stream being held open causing windows CI failures

This commit is contained in:
Dean Herbert 2021-10-04 14:30:22 +09:00
parent 6ec2223b5c
commit 537b29654e

View File

@ -70,7 +70,8 @@ namespace osu.Game.Tests.Database
{
try
{
return testStorage.GetStream(realmFactory.Filename)?.Length ?? 0;
using (var stream = testStorage.GetStream(realmFactory.Filename))
return stream?.Length ?? 0;
}
catch
{