Skip to content

Commit

Permalink
Fix mock URL domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Dec 10, 2024
1 parent 1652b9f commit bbc0948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/tickets/zendesk/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func TestSearchUser(t *testing.T) {
userUUID := "9a327960-b2ce-4659-bef7-87cbb837a154"

httpx.SetRequestor(httpx.NewMockRequestor(map[string][]httpx.MockResponse{
fmt.Sprintf("https://mocked_subdomain.zendesk.com/api/v2/users/search.json?query=%s", userUUID): {
fmt.Sprintf("https://nyaruka.zendesk.com/api/v2/users/search.json?query=%s", userUUID): {
httpx.MockConnectionError,
httpx.NewMockResponse(400, nil, `{"description": "Something went wrong", "error": "Unknown"}`),
httpx.NewMockResponse(200, nil, `{"users": []}`),
Expand Down

0 comments on commit bbc0948

Please sign in to comment.