mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Fix intermittent test failures due to randomised score statistics
This commit is contained in:
@ -274,14 +274,18 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const int initial_great_count = 2000;
|
||||||
|
|
||||||
|
int greatCount = initial_great_count;
|
||||||
|
|
||||||
foreach (var s in scores.Scores)
|
foreach (var s in scores.Scores)
|
||||||
{
|
{
|
||||||
s.Statistics = new Dictionary<HitResult, int>
|
s.Statistics = new Dictionary<HitResult, int>
|
||||||
{
|
{
|
||||||
{ HitResult.Great, RNG.Next(2000) },
|
{ HitResult.Great, greatCount -= 100 },
|
||||||
{ HitResult.Ok, RNG.Next(2000) },
|
{ HitResult.Ok, RNG.Next(100) },
|
||||||
{ HitResult.Meh, RNG.Next(2000) },
|
{ HitResult.Meh, RNG.Next(100) },
|
||||||
{ HitResult.Miss, RNG.Next(2000) }
|
{ HitResult.Miss, initial_great_count - greatCount }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user