Fix test race condition

async loads
This commit is contained in:
Dean Herbert 2017-12-26 20:13:55 +09:00
parent 44fbe7859a
commit 1c4bcdda96
1 changed files with 4 additions and 0 deletions

View File

@ -110,11 +110,15 @@ private void testNullBeatmap()
private void selectBeatmap(string name)
{
var infoBefore = infoWedge.Info;
AddStep($"select {name} beatmap", () =>
{
beatmap.Value = new TestWorkingBeatmap(beatmaps.First(b => b.BeatmapInfo.Ruleset.ShortName == name));
infoWedge.UpdateBeatmap(beatmap);
});
AddUntilStep(() => infoWedge.Info != infoBefore, "wait for async load");
}
private void selectNullBeatmap()