Skip to content

Commit

Permalink
fix(e2e): Fix typos in TestBrokerTrigger (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
navidshaikh authored Mar 19, 2020
1 parent 1b0e712 commit 062aeb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/trigger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ func TestBrokerTrigger(t *testing.T) {
r := NewKnRunResultCollector(t)
defer r.DumpIfFailed()

err = test.lableNamespaceForDefaultBroker(t)
err = test.labelNamespaceForDefaultBroker(t)
assert.NilError(t, err)
defer test.unlableNamespaceForDefaultBroker(t)
defer test.unlabelNamespaceForDefaultBroker(t)

test.serviceCreate(t, r, "sinksvc0")
test.serviceCreate(t, r, "sinksvc1")
Expand Down Expand Up @@ -77,14 +77,14 @@ func TestBrokerTrigger(t *testing.T) {
test.triggerCreateMissingSink(t, r, "errtrigger", "notfound")
}

func (test *e2eTest) unlableNamespaceForDefaultBroker(t *testing.T) {
func (test *e2eTest) unlabelNamespaceForDefaultBroker(t *testing.T) {
_, err := kubectl{}.Run("label", "namespace", test.kn.namespace, "knative-eventing-injection-")
if err != nil {
t.Fatalf("Error executing 'kubectl label namespace %s knative-eventing-injection-'. Error: %s", test.kn.namespace, err.Error())
}
}

func (test *e2eTest) lableNamespaceForDefaultBroker(t *testing.T) error {
func (test *e2eTest) labelNamespaceForDefaultBroker(t *testing.T) error {
_, err := kubectl{}.Run("label", "namespace", test.kn.namespace, "knative-eventing-injection=enabled")
if err != nil {
t.Fatalf("Error executing 'kubectl label namespace %s knative-eventing-injection=enabled'. Error: %s", test.kn.namespace, err.Error())
Expand Down

0 comments on commit 062aeb9

Please sign in to comment.