Merge pull request #1243 from trheyi/main

Refactor test case for member update to remove unnecessary whitespace
This commit is contained in:
Max 2025-10-27 13:43:50 +08:00 committed by GitHub
commit b1c6ee3ed6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1907,13 +1907,13 @@ func TestMemberUpdateRobot(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
memberID, _ := tc.setupFunc()
// Use non-existent team ID for the specific test case
targetTeamID := teamID
if tc.name == "update robot in non-existent team" {
targetTeamID = "non-existent-team-id"
}
requestURL := serverURL + baseURL + "/user/teams/" + targetTeamID + "/members/robots/" + memberID
var req *http.Request