Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanh committed Nov 20, 2020
1 parent 1e2dacc commit 96567a6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions components/event-publisher-proxy/pkg/handler/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,12 @@ func TestHandlerForLegacyEvents(t *testing.T) {
}

func TestHandlerForBEBFailures(t *testing.T) {
t.Parallel()
port, err := generatePort()
if err != nil {
t.Fatalf("failed to generate port: %v", err)
}
var (
port = 8888
healthEndpoint = fmt.Sprintf("http://localhost:%d/healthz", port)
publishLegacyEndpoint = fmt.Sprintf("http://localhost:%d/app/v1/events", port)
publishEndpoint = fmt.Sprintf("http://localhost:%d/publish", port)
Expand Down Expand Up @@ -515,8 +519,12 @@ func TestHandlerForBEBFailures(t *testing.T) {
}

func TestHandlerForHugeRequests(t *testing.T) {
t.Parallel()
port, err := generatePort()
if err != nil {
t.Fatalf("failed to generate port: %v", err)
}
var (
port = 8888
healthEndpoint = fmt.Sprintf("http://localhost:%d/healthz", port)
publishLegacyEndpoint = fmt.Sprintf("http://localhost:%d/app/v1/events", port)
bebNs = "/beb.namespace"
Expand Down

0 comments on commit 96567a6

Please sign in to comment.