Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zysim committed Oct 16, 2024
1 parent 62ad046 commit 5e5367c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LeaderboardBackend.Test/Leaderboards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
Expand Down

0 comments on commit 5e5367c

Please sign in to comment.