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 3a93928 commit 93a2b65
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 @@ -363,7 +363,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 @@ -389,7 +389,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 93a2b65

Please sign in to comment.