Skip to content

Commit

Permalink
update: add err contest test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tennessine699 committed Sep 16, 2024
1 parent db1c2d4 commit 822d70e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/infrastructure/repository/contest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ func Test_UpdateContest(t *testing.T) {
err = repo.UpdateContest(context.Background(), contest.ID, argWithoutUntil)
assert.NoError(t, err)
})

t.Run("update failed: not contest id", func(t *testing.T) {
err = repo.UpdateContest(context.Background(), random.UUID(), &repository.UpdateContestArgs{})
assert.Error(t, err)
})
}

func Test_DeleteContest(t *testing.T) {
Expand Down

0 comments on commit 822d70e

Please sign in to comment.