chore: update error message for duplicate organization members (#17594)

Closes https://github.com/coder/internal/issues/345
This commit is contained in:
ケイラ
2025-04-28 13:51:33 -07:00
committed by GitHub
parent a78f0fc4e1
commit 12589026b6
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ func TestAddMember(t *testing.T) {
// Add user to org, even though they already exist
// nolint:gocritic // must be an owner to see the user
_, err := owner.PostOrganizationMember(ctx, first.OrganizationID, user.Username)
require.ErrorContains(t, err, "already exists")
require.ErrorContains(t, err, "already an organization member")
})
}