diff options
Diffstat (limited to 'store/sql_webhook_store_test.go')
-rw-r--r-- | store/sql_webhook_store_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/store/sql_webhook_store_test.go b/store/sql_webhook_store_test.go index e1aaad1b7..20bb8c151 100644 --- a/store/sql_webhook_store_test.go +++ b/store/sql_webhook_store_test.go @@ -6,6 +6,8 @@ package store import ( "testing" + "net/http" + "github.com/mattermost/platform/model" ) @@ -72,6 +74,10 @@ func TestWebhookStoreGetIncoming(t *testing.T) { if err := (<-store.Webhook().GetIncoming("123", true)).Err; err == nil { t.Fatal("Missing id should have failed") } + + if err := (<-store.Webhook().GetIncoming("123", true)).Err; err.StatusCode != http.StatusNotFound { + t.Fatal("Should have set the status as not found for missing id") + } } func TestWebhookStoreGetIncomingList(t *testing.T) { |