From 5e5367cd325233b921f3c63eeb019eef7fa207e8 Mon Sep 17 00:00:00 2001 From: zysim <9867871+zysim@users.noreply.github.com> Date: Wed, 16 Oct 2024 20:49:53 +0800 Subject: [PATCH] Fix tests --- LeaderboardBackend.Test/Leaderboards.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LeaderboardBackend.Test/Leaderboards.cs b/LeaderboardBackend.Test/Leaderboards.cs index 1dc1407f..545e787a 100644 --- a/LeaderboardBackend.Test/Leaderboards.cs +++ b/LeaderboardBackend.Test/Leaderboards.cs @@ -373,7 +373,7 @@ public async Task RestoreLeaderboard_OK() }); res.StatusCode.Should().Be(HttpStatusCode.NoContent); - + context.ChangeTracker.Clear(); Leaderboard? board = await context.Leaderboards.FindAsync(deletedBoard.Id); board.Should().NotBeNull(); // TODO: `DeletedAt` is still not null here. Don't know how to fix it. @@ -399,7 +399,7 @@ public async Task RestoreLeaderboard_NotFound_WasNeverDeleted() Leaderboard board = new() { Name = "Super Mario World", - Slug = "super-mario-world-deleted", + Slug = "super-mario-world-non-deleted", }; context.Leaderboards.Add(board);