Skip to content

Commit 9ee4f62

Browse files
authored
fix gh_event handler (#74)
Signed-off-by: cpanato <[email protected]>
1 parent 8120812 commit 9ee4f62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ func NewServer(logger log.Logger, opts Opts) *Server {
7272
}
7373

7474
muxMetrics.Handle(opts.MetricsPath, promhttp.Handler())
75-
muxMetrics.HandleFunc(opts.WebhookPath, workflowExporter.HandleGHWebHook)
7675

7776
muxIngress.HandleFunc("/", server.handleRoot)
77+
muxIngress.HandleFunc(opts.WebhookPath, workflowExporter.HandleGHWebHook)
7878

7979
return server
8080
}

internal/server/server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func Test_Server_MetricsRouteAfterWorkflowJob(t *testing.T) {
109109
RunnerGroupName: &runnerGroupName,
110110
},
111111
}
112-
req := testWebhookRequest(t, "http://localhost:8000/webhook", "workflow_job", event)
112+
req := testWebhookRequest(t, "http://localhost:8001/webhook", "workflow_job", event)
113113
res, err := http.DefaultClient.Do(req)
114114
require.NoError(t, err)
115115
defer res.Body.Close()

0 commit comments

Comments
 (0)