diff options
Diffstat (limited to 'api4')
-rw-r--r-- | api4/brand_test.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/api4/brand_test.go b/api4/brand_test.go index 11a3cbf38..c1568c5cc 100644 --- a/api4/brand_test.go +++ b/api4/brand_test.go @@ -34,11 +34,8 @@ func TestUploadBrandImage(t *testing.T) { t.Fatal(err) } - ok, resp := Client.UploadBrandImage(data) + _, resp := Client.UploadBrandImage(data) CheckForbiddenStatus(t, resp) - if ok { - t.Fatal("Should return false, set brand image not allowed") - } // status code returns either forbidden or unauthorized // note: forbidden is set as default at Client4.SetProfileImage when request is terminated early by server @@ -53,5 +50,5 @@ func TestUploadBrandImage(t *testing.T) { } _, resp = th.SystemAdminClient.UploadBrandImage(data) - CheckNotImplementedStatus(t, resp) + CheckCreatedStatus(t, resp) } |