summaryrefslogtreecommitdiffstats
path: root/api4/webhook_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/webhook_test.go')
-rw-r--r--api4/webhook_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/api4/webhook_test.go b/api4/webhook_test.go
index b09f4411e..f8d33e984 100644
--- a/api4/webhook_test.go
+++ b/api4/webhook_test.go
@@ -391,11 +391,7 @@ func TestGetOutgoingWebhooks(t *testing.T) {
}
hooks, resp = th.SystemAdminClient.GetOutgoingWebhooksForChannel(model.NewId(), 0, 1000, "")
- CheckNoError(t, resp)
-
- if len(hooks) != 0 {
- t.Fatal("no hooks should be returned")
- }
+ CheckForbiddenStatus(t, resp)
_, resp = Client.GetOutgoingWebhooks(0, 1000, "")
CheckForbiddenStatus(t, resp)