Skip to content

Commit

Permalink
Update controllers/event_handling_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Paulo Gomes <paulo.gomes.uk@gmail.com>
Signed-off-by: Gunish Matta <33680363+gunishmatta@users.noreply.github.com>
  • Loading branch information
gunishmatta and pjbgf authored Nov 14, 2022
1 parent 75ccf67 commit 6dd731c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions controllers/event_handling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,13 @@ func TestEventHandler(t *testing.T) {
webhook_url, err := url.Parse(provider.Spec.Address)
g.Expect(err).ToNot(HaveOccurred())

if eventServerTest.isHttpEnabled {
g.Expect(webhook_url.Scheme).To(Equal(httpScheme))
g.Expect(requestsReceived).To(Equal(1))
} else {
g.Expect(webhook_url.Scheme).ToNot(Equal(httpScheme))
g.Expect(requestsReceived).To(Equal(0))
}
}
if eventServerTest.isHttpEnabled {
g.Expect(webhook_url.Scheme).To(Equal(httpScheme))
g.Expect(requestsReceived).To(Equal(1))
} else {
g.Expect(webhook_url.Scheme).ToNot(Equal(httpScheme))
g.Expect(requestsReceived).To(Equal(0))
}

})
}
Expand Down

0 comments on commit 6dd731c

Please sign in to comment.