1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

Fix async usage in TestSceneNotificationOverlay

This commit is contained in:
Dean Herbert 2023-10-12 16:00:36 +09:00
parent 55a9de034d
commit e6103fea95
No known key found for this signature in database

View File

@ -5,6 +5,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
@ -541,9 +542,9 @@ namespace osu.Game.Tests.Visual.UserInterface
progressingNotifications.Add(n);
}
private async void sendUserNotification()
private void sendUserNotification()
{
var user = await userLookupCache.GetUserAsync(0).ConfigureAwait(true);
var user = userLookupCache.GetUserAsync(0).GetResultSafely();
if (user == null) return;
var n = new UserAvatarNotification(user, $"{user.Username} invited you to a multiplayer match!");