Skip to content

Commit 81557fd

Browse files
AchoArnoldCopilot
andcommitted
fix: expect 201 Created from webhook store endpoint
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 892fc25 commit 81557fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/helpers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func setupWebhook(ctx context.Context, t *testing.T, phoneNumber string, events
130130
Events: events,
131131
})
132132
require.NoError(t, err)
133-
require.Equal(t, http.StatusOK, resp.HTTPResponse.StatusCode, "webhook store failed")
133+
require.Equal(t, http.StatusCreated, resp.HTTPResponse.StatusCode, "webhook store failed")
134134

135135
return signingKey, webhookPath
136136
}

0 commit comments

Comments
 (0)