From e9b397f06fb397bde9039451c865fbb0db786c89 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 11 Jul 2017 10:41:18 +0900 Subject: [PATCH] Remove assert which is not always true on some operating systems --- osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs b/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs index 910918297f..239c9f59e3 100644 --- a/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs +++ b/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs @@ -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().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"); } }