From 9824897eaa78afff3d896aa577df15654ed496f8 Mon Sep 17 00:00:00 2001 From: Ben Moss Date: Wed, 9 Jun 2021 11:09:45 -0400 Subject: [PATCH] Fix tests relying on non-existent services Upcoming changes to AddressableResolver will make it so that if a k8s service does not exist it will error when we try to resolve it --- pkg/reconciler/subscription/subscription_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/reconciler/subscription/subscription_test.go b/pkg/reconciler/subscription/subscription_test.go index fd09f1a16f5..5c887763cab 100644 --- a/pkg/reconciler/subscription/subscription_test.go +++ b/pkg/reconciler/subscription/subscription_test.go @@ -1111,6 +1111,7 @@ func TestAllCases(t *testing.T) { BackoffDelay: pointer.StringPtr("PT1S"), }), ), + NewService(serviceName, testNS), }, Key: testNS + "/" + "a-" + subscriptionName, WantErr: false, @@ -1195,6 +1196,7 @@ func TestAllCases(t *testing.T) { BackoffDelay: pointer.StringPtr("PT10S"), }), ), + NewService(serviceName, testNS), }, Key: testNS + "/" + "a-" + subscriptionName, WantErr: false,