Fix broken tests.

This commit is contained in:
Dean Herbert
2016-11-05 22:48:32 +09:00
parent 7c7e2160ec
commit cc140c9634

View File

@ -8,6 +8,7 @@ using osu.Framework.Desktop.Platform;
using osu.Framework.Platform;
using osu.Game.Database;
using osu.Game.IPC;
using osu.Game.GameModes.Play;
namespace osu.Game.Tests.Beatmaps.IO
{
@ -45,7 +46,7 @@ namespace osu.Game.Tests.Beatmaps.IO
var importer = new BeatmapImporter(client);
if (!importer.Import(osz_path).Wait(1000))
Assert.Fail(@"IPC took too long to send");
Assert.Fail(@"IPC took too long to send");
ensureLoaded(osu, 10000);
}
@ -103,7 +104,7 @@ namespace osu.Game.Tests.Beatmaps.IO
Assert.IsTrue(set.Beatmaps.Count > 0);
var beatmap = osu.Beatmaps.GetBeatmap(set.Beatmaps[0]);
var beatmap = osu.Beatmaps.GetBeatmap(set.Beatmaps.First(b => b.Mode == PlayMode.Osu));
Assert.IsTrue(beatmap.HitObjects.Count > 0);
}