Fix failing tests due to ignoring the lookup ID

This commit is contained in:
Dean Herbert 2020-12-18 16:50:25 +09:00
parent 9226a67f16
commit 07a8ffa4aa

View File

@ -89,13 +89,11 @@ namespace osu.Game.Tests.Visual.Online
"pishifat"
};
private int id;
protected override Task<User> ComputeValueAsync(int lookup, CancellationToken token = default)
=> Task.FromResult(new User
{
Id = id++,
Username = usernames[id % usernames.Length],
Id = lookup++,
Username = usernames[lookup % usernames.Length],
});
}
}