1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:42:54 +08:00

Remove assert which is not always true on some operating systems

This commit is contained in:
Dean Herbert 2017-07-11 10:41:18 +09:00
parent 2d21a7d2bf
commit e9b397f06f

View File

@ -75,18 +75,16 @@ namespace osu.Game.Tests.Beatmaps.IO
var temp = prepareTempCopy(osz_path);
Assert.IsTrue(File.Exists(temp));
Assert.IsTrue(File.Exists(temp), "Temporary file copy never substantiated");
using (File.OpenRead(temp))
host.Dependencies.Get<BeatmapDatabase>().Import(temp);
ensureLoaded(host);
Assert.IsTrue(File.Exists(temp));
File.Delete(temp);
Assert.IsFalse(File.Exists(temp));
Assert.IsFalse(File.Exists(temp), "We likely help a read lock not he file when we shouldn't");
}
}