@@ -391,7 +391,7 @@ func TestServiceRouter_InitializeMetadata(t *testing.T) {
391
391
392
392
primarySvc , err := mocks .kubeClient .CoreV1 ().Services ("default" ).Get (context .TODO (), "podinfo-primary" , metav1.GetOptions {})
393
393
require .NoError (t , err )
394
- assert .Equal (t , 0 , len (primarySvc .Annotations ))
394
+ assert .Equal (t , 1 , len (primarySvc .Annotations ))
395
395
assert .Equal (t , "podinfo-primary" , primarySvc .Labels ["app" ])
396
396
}
397
397
@@ -423,12 +423,12 @@ func TestServiceRouter_ReconcileMetadata(t *testing.T) {
423
423
424
424
canarySvc , err := mocks .kubeClient .CoreV1 ().Services ("default" ).Get (context .TODO (), "podinfo-canary" , metav1.GetOptions {})
425
425
require .NoError (t , err )
426
- assert .Equal (t , 0 , len (canarySvc .Annotations ))
426
+ assert .Equal (t , 1 , len (canarySvc .Annotations ))
427
427
assert .Equal (t , "podinfo-canary" , canarySvc .Labels ["app" ])
428
428
429
429
primarySvc , err := mocks .kubeClient .CoreV1 ().Services ("default" ).Get (context .TODO (), "podinfo-primary" , metav1.GetOptions {})
430
430
require .NoError (t , err )
431
- assert .Equal (t , 0 , len (primarySvc .Annotations ))
431
+ assert .Equal (t , 1 , len (primarySvc .Annotations ))
432
432
assert .Equal (t , "podinfo-primary" , primarySvc .Labels ["app" ])
433
433
434
434
mocks .canary .Spec .Service .Apex = & flaggerv1.CustomMetadata {
0 commit comments