New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix test failures in team versus test #15988
Conversation
@@ -77,7 +77,7 @@ public void TestCreateWithType() | |||
} | |||
}); | |||
|
|||
AddAssert("room type is team vs", () => client.Room?.Settings.MatchType == MatchType.TeamVersus); | |||
AddUntilStep("room type is team vs", () => client.Room?.Settings.MatchType == MatchType.TeamVersus); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one isn't required, but I guess there's no harm?
@@ -162,13 +162,13 @@ public void TestChangeTypeViaMatchSettings() | |||
} | |||
}); | |||
|
|||
AddAssert("room type is head to head", () => client.Room?.Settings.MatchType == MatchType.HeadToHead); | |||
AddUntilStep("room type is head to head", () => client.Room?.Settings.MatchType == MatchType.HeadToHead); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with this one, not required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just changed all of these asserts across the entire file to until steps, because it was bothering me that it was half-and-half even before I came in.
As seen in https://github.com/ppy/osu/runs/4448261203?check_suite_focus=true
Reproduced locally with single thread mode and following patch applied: