mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Fix failing tests due to ignoring the lookup ID
This commit is contained in:
parent
9226a67f16
commit
07a8ffa4aa
@ -89,13 +89,11 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
"pishifat"
|
"pishifat"
|
||||||
};
|
};
|
||||||
|
|
||||||
private int id;
|
|
||||||
|
|
||||||
protected override Task<User> ComputeValueAsync(int lookup, CancellationToken token = default)
|
protected override Task<User> ComputeValueAsync(int lookup, CancellationToken token = default)
|
||||||
=> Task.FromResult(new User
|
=> Task.FromResult(new User
|
||||||
{
|
{
|
||||||
Id = id++,
|
Id = lookup++,
|
||||||
Username = usernames[id % usernames.Length],
|
Username = usernames[lookup % usernames.Length],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user