Skip to content

Commit eec0a1a

Browse files
linting and cleanup
1 parent ab1eac0 commit eec0a1a

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

pkg/reconciler/route/resources/service_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
netapi "knative.dev/networking/pkg/apis/networking"
2929
netv1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1"
3030
netcfg "knative.dev/networking/pkg/config"
31-
"knative.dev/pkg/apis"
3231
"knative.dev/pkg/kmeta"
3332
pkgnet "knative.dev/pkg/network"
3433
apiConfig "knative.dev/serving/pkg/apis/config"
@@ -291,7 +290,6 @@ func TestMakeK8SService(t *testing.T) {
291290
t.Run(tc.name, func(t *testing.T) {
292291
ingress := &netv1alpha1.Ingress{Status: tc.status}
293292
ctx := config.ToContext(context.Background(), testConfig())
294-
ctx = apis.WithDryRun(ctx)
295293

296294
got, err := MakeK8sService(ctx, tc.route, tc.tagName, ingress, tc.private)
297295
if tc.expectErr && err == nil {

pkg/reconciler/route/table_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3388,7 +3388,6 @@ func NewTestReconciler(ctx context.Context, listers *Listers, cmw configmap.Watc
33883388
cfg.Domain = v.(*config.Domain)
33893389
}
33903390

3391-
ctx = apis.WithDryRun(ctx)
33923391
return routereconciler.NewReconciler(ctx,
33933392
logging.FromContext(ctx),
33943393
servingclient.Get(ctx),

test/e2e/service_validation_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import (
3333
v1test "knative.dev/serving/test/v1"
3434

3535
. "knative.dev/serving/pkg/testing/v1"
36-
rtesting "knative.dev/serving/pkg/testing/v1"
3736
)
3837

3938
func withInvalidContainer() ServiceOption {
@@ -71,7 +70,7 @@ func TestServiceDryRunValidationWithInvalidPodSpec(t *testing.T) {
7170

7271
// PatchServiceWithDryRun patches the existing service passed in with the applied mutations running in dryrun mode.
7372
// Returns the latest service object
74-
func PatchServiceWithDryRun(t testing.TB, clients *test.Clients, service *v1.Service, fopt ...rtesting.ServiceOption) (svc *v1.Service, err error) {
73+
func PatchServiceWithDryRun(t testing.TB, clients *test.Clients, service *v1.Service, fopt ...ServiceOption) (svc *v1.Service, err error) {
7574
newSvc := service.DeepCopy()
7675
for _, opt := range fopt {
7776
opt(newSvc)

0 commit comments

Comments
 (0)