Skip to content

Commit

Permalink
sessions_test.go: Update CreateTokenFromTemplate URL for integration …
Browse files Browse the repository at this point in the history
…tests
  • Loading branch information
shank03 authored and agis committed Jun 19, 2024
1 parent 47cb525 commit 3411ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clerk/sessions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func TestSessionsService_CreateTokenFromTemplate_Success(t *testing.T) {
clerkClient, mux, _, teardown := setup(token)
defer teardown()

mux.HandleFunc(fmt.Sprintf("/%s/%s/token/%s", SessionsUrl, sessionID, templateSlug), func(w http.ResponseWriter, req *http.Request) {
mux.HandleFunc(fmt.Sprintf("/%s/%s/tokens/%s", SessionsUrl, sessionID, templateSlug), func(w http.ResponseWriter, req *http.Request) {
testHttpMethod(t, req, "POST")
testHeader(t, req, "Authorization", fmt.Sprintf("Bearer %s", token))
w.WriteHeader(http.StatusOK)
Expand Down

0 comments on commit 3411ef3

Please sign in to comment.