Skip to content

Commit

Permalink
fix gh_event handler (#74)
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Mar 10, 2023
1 parent 8120812 commit 9ee4f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/server/server.go
Expand Up @@ -72,9 +72,9 @@ func NewServer(logger log.Logger, opts Opts) *Server {
}

muxMetrics.Handle(opts.MetricsPath, promhttp.Handler())
muxMetrics.HandleFunc(opts.WebhookPath, workflowExporter.HandleGHWebHook)

muxIngress.HandleFunc("/", server.handleRoot)
muxIngress.HandleFunc(opts.WebhookPath, workflowExporter.HandleGHWebHook)

return server
}
Expand Down
2 changes: 1 addition & 1 deletion internal/server/server_test.go
Expand Up @@ -109,7 +109,7 @@ func Test_Server_MetricsRouteAfterWorkflowJob(t *testing.T) {
RunnerGroupName: &runnerGroupName,
},
}
req := testWebhookRequest(t, "http://localhost:8000/webhook", "workflow_job", event)
req := testWebhookRequest(t, "http://localhost:8001/webhook", "workflow_job", event)
res, err := http.DefaultClient.Do(req)
require.NoError(t, err)
defer res.Body.Close()
Expand Down

0 comments on commit 9ee4f62

Please sign in to comment.