mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix error not appearing when updating to existing username (#6255)
This commit is contained in:
committed by
Christopher Speller
parent
1b82d98cdb
commit
514f038f44
@@ -797,6 +797,13 @@ func TestPatchUser(t *testing.T) {
|
||||
t.Fatal("NotifyProps did not update properly")
|
||||
}
|
||||
|
||||
patch.Username = new(string)
|
||||
*patch.Username = th.BasicUser2.Username
|
||||
_, resp = Client.PatchUser(user.Id, patch)
|
||||
CheckBadRequestStatus(t, resp)
|
||||
|
||||
patch.Username = nil
|
||||
|
||||
_, resp = Client.PatchUser("junk", patch)
|
||||
CheckBadRequestStatus(t, resp)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user