// AssertFinalizers asserts the given runtime object has the expected finalizers
AssertFinalizers asserts the given runtime object has the expected finalizers
// AssertFinalizers asserts the given runtime object has the expected finalizers
func AssertFinalizers(t *testing.T, obj runtime.Object, finalizers []string) {
	accessor, _ := meta.Accessor(obj)
	actual := accessor.GetFinalizers()
	if len(actual) == 0 && len(finalizers) == 0 {
		return
	}
	if !reflect.DeepEqual(actual, finalizers) {
		t.Fatal(diff.ObjectDiff(actual, finalizers))
	}
}
func AssertFinalizers ( t * testing . T , obj runtime . Object , finalizers [ ] string ) { accessor , _ := meta . Accessor ( obj ) actual := accessor . GetFinalizers ( ) if len ( actual ) == 0 && len ( finalizers ) == 0 { return } if ! reflect . DeepEqual ( actual , finalizers ) { t . Fatal ( diff . ObjectDiff ( actual , finalizers ) ) } }
AssertFinalizers asserts the given runtime object has the expected finalizers
AssertFinalizers asserts the given runtime object has the expected finalizers