Skip to content

Commit 6dd731c

Browse files
gunishmattapjbgf
andauthored
Update controllers/event_handling_test.go
Co-authored-by: Paulo Gomes <[email protected]> Signed-off-by: Gunish Matta <[email protected]>
1 parent 75ccf67 commit 6dd731c

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

controllers/event_handling_test.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,13 @@ func TestEventHandler(t *testing.T) {
102102
webhook_url, err := url.Parse(provider.Spec.Address)
103103
g.Expect(err).ToNot(HaveOccurred())
104104

105-
if eventServerTest.isHttpEnabled {
106-
g.Expect(webhook_url.Scheme).To(Equal(httpScheme))
107-
g.Expect(requestsReceived).To(Equal(1))
108-
} else {
109-
g.Expect(webhook_url.Scheme).ToNot(Equal(httpScheme))
110-
g.Expect(requestsReceived).To(Equal(0))
111-
}
112-
}
105+
if eventServerTest.isHttpEnabled {
106+
g.Expect(webhook_url.Scheme).To(Equal(httpScheme))
107+
g.Expect(requestsReceived).To(Equal(1))
108+
} else {
109+
g.Expect(webhook_url.Scheme).ToNot(Equal(httpScheme))
110+
g.Expect(requestsReceived).To(Equal(0))
111+
}
113112

114113
})
115114
}

0 commit comments

Comments
 (0)