@@ -455,13 +455,13 @@ func TestSyncPruneFailure(t *testing.T) {
455
455
assert .Equal (t , "foo" , result .Message )
456
456
}
457
457
458
- func TestDontSyncOrPruneHooks (t * testing.T ) {
458
+ func TestDoNotSyncOrPruneHooks (t * testing.T ) {
459
459
syncCtx := newTestSyncCtx (WithOperationSettings (false , false , false , true ))
460
460
targetPod := NewPod ()
461
- targetPod .SetName ("dont -create-me" )
461
+ targetPod .SetName ("do-not -create-me" )
462
462
targetPod .SetAnnotations (map [string ]string {synccommon .AnnotationKeyHook : "PreSync" })
463
463
liveSvc := NewService ()
464
- liveSvc .SetName ("dont -prune-me" )
464
+ liveSvc .SetName ("do-not -prune-me" )
465
465
liveSvc .SetNamespace (FakeArgoCDNamespace )
466
466
liveSvc .SetAnnotations (map [string ]string {synccommon .AnnotationKeyHook : "PreSync" })
467
467
@@ -473,7 +473,7 @@ func TestDontSyncOrPruneHooks(t *testing.T) {
473
473
}
474
474
475
475
// make sure that we do not prune resources with Prune=false
476
- func TestDontPrunePruneFalse (t * testing.T ) {
476
+ func TestDoNotPrunePruneFalse (t * testing.T ) {
477
477
syncCtx := newTestSyncCtx (WithOperationSettings (false , true , false , false ))
478
478
pod := NewPod ()
479
479
pod .SetAnnotations (map [string ]string {synccommon .AnnotationSyncOptions : "Prune=false" })
@@ -1250,7 +1250,7 @@ func TestPruneLast(t *testing.T) {
1250
1250
assert .Equal (t , 3 , tasks .lastWave ())
1251
1251
})
1252
1252
1253
- t .Run ("pruneLastIndidualResources " , func (t * testing.T ) {
1253
+ t .Run ("pruneLastIndividualResources " , func (t * testing.T ) {
1254
1254
syncCtx .pruneLast = false
1255
1255
1256
1256
pod1 .SetAnnotations (map [string ]string {synccommon .AnnotationSyncWave : "2" })
0 commit comments