Skip to content

Commit

Permalink
Fix occasional test failures on new menu content tests
Browse files Browse the repository at this point in the history
Scheduled data transfer could still overwrite test data.
  • Loading branch information
peppy committed Jun 3, 2024
1 parent 8296e63 commit 9651413
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion osu.Game/Screens/Menu/OnlineMenuBanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,15 @@ private void checkForUpdates()
return;

if (r.IsCompletedSuccessfully)
Schedule(() => Current.Value = request.ResponseObject);
{
Schedule(() =>
{
if (!FetchOnlineContent)
return;

Current.Value = request.ResponseObject;
});
}

// if the request failed, "observe" the exception.
// it isn't very important why this failed, as it's only for display.
Expand Down

0 comments on commit 9651413

Please sign in to comment.