From aff30db89d42ee0889145a3b8974d959eaeb02e2 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Sun, 22 Oct 2017 16:21:41 +0900 Subject: [PATCH] Add thread sleep as a temporary workaround for failing tests --- osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs b/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs index e5b8c7fe57..0f9ee60ac7 100644 --- a/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs +++ b/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs @@ -100,6 +100,10 @@ namespace osu.Game.Tests.Beatmaps.IO waitForOrAssert(() => osu.IsLoaded, @"osu! failed to start in a reasonable amount of time"); + // this is a temporary workaround for database transaction clashes. + // see https://github.com/aspnet/EntityFrameworkCore/issues/9994 for more information. + Thread.Sleep(1000); + return osu; }