Skip to content

Commit

Permalink
Fix user integration test resource cleanup (#1068)
Browse files Browse the repository at this point in the history
In the integration test introduced in #1067 we cleanup the created resources after every individual test. Instead of deleting all created users, we accidentally deleted the same user twice.
  • Loading branch information
weeco authored Feb 2, 2024
1 parent 8a8bd0a commit 679a8db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/pkg/api/connect/integration/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *APISuite) TestListUsers() {
createUser(username1)
createUser(username2)
defer deleteUser(username1)
defer deleteUser(username1)
defer deleteUser(username2)

// 2. List users
client := v1alpha1connect.NewUserServiceClient(http.DefaultClient, s.httpAddress())
Expand Down Expand Up @@ -106,7 +106,7 @@ func (s *APISuite) TestListUsers() {
createUser(username1)
createUser(username2)
defer deleteUser(username1)
defer deleteUser(username1)
defer deleteUser(username2)

// 2. List users
type listUsersRes struct {
Expand Down

0 comments on commit 679a8db

Please sign in to comment.