1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-12 00:37:19 +08:00
Bartłomiej Dach e45d456324
Fix TestFriendScore intermittently failing due to randomness
If `createRandomScore()` happened to randomly pick the highest total
score when called with `friend` as the sole argument, that particular
score would not be pink.

`GetScoreByUsername()` would arbitrarily pick the first score for the
user, so in this particular case where a friend had the number 1 score,
the test would wrongly fail.

Fix by checking whether any of the 3 added friend scores have received
the pink colour. Because there is more than 1 friend score in the test,
doing so ensures that at least one of those should eventually become
pink (because, obviously, you can't have two scores at number 1).
2023-09-21 21:12:44 +02:00
..
2023-06-24 01:00:03 +09:00
2022-11-27 00:00:27 +09:00
2022-11-27 00:00:27 +09:00
2023-06-24 01:00:03 +09:00
2022-11-27 00:00:27 +09:00
2023-06-24 01:00:03 +09:00
2022-11-27 00:00:27 +09:00
2023-06-27 20:29:27 +02:00
2022-11-27 00:00:27 +09:00
2023-06-24 01:00:03 +09:00
2022-11-27 00:00:27 +09:00
2023-02-01 22:58:11 +01:00
2022-11-27 00:00:27 +09:00
2023-03-21 23:15:49 +01:00
2022-11-27 00:00:27 +09:00
2023-06-24 01:00:03 +09:00
2023-06-24 01:00:03 +09:00