Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit 0a4e1eb

Browse files
committed
Fix test cases
1 parent 3815243 commit 0a4e1eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/controller/nginxingresscontroller/service_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ func TestUpdateService(t *testing.T) {
251251
ObjectMeta: v1.ObjectMeta{
252252
Name: name,
253253
Namespace: namespace,
254+
Labels: map[string]string{"my": "labelToBeOverridden"},
254255
},
255256
Spec: corev1.ServiceSpec{
256257
Type: corev1.ServiceTypeLoadBalancer,
@@ -285,6 +286,7 @@ func TestUpdateService(t *testing.T) {
285286
ObjectMeta: v1.ObjectMeta{
286287
Name: name,
287288
Namespace: namespace,
289+
Labels: map[string]string{"my": "labelToBeRemoved"},
288290
},
289291
Spec: corev1.ServiceSpec{
290292
Type: corev1.ServiceTypeLoadBalancer,

0 commit comments

Comments
 (0)