From cb0fdc2f27b0748d625f1249a461eb0835900085 Mon Sep 17 00:00:00 2001 From: Simon Ferquel Date: Tue, 29 Jan 2019 15:39:22 +0100 Subject: [PATCH] Fix typo Signed-off-by: Simon Ferquel --- internal/controller/stackreconciler_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/controller/stackreconciler_test.go b/internal/controller/stackreconciler_test.go index bc3a9300..9e29fef5 100644 --- a/internal/controller/stackreconciler_test.go +++ b/internal/controller/stackreconciler_test.go @@ -92,20 +92,20 @@ func (u *testResourceUpdater) deleteSecretsAndConfigMaps() error { return nil } -type reconiliationTestCaseResult struct { +type reconciliationTestCaseResult struct { diffs []*diff.StackStateDiff statuses []*latest.Stack childResourceDeletions int } func runReconcilierTestCase(originalStack *latest.Stack, defaultServiceType coretypes.ServiceType, operation func(*StackReconciler), - originalState ...interface{}) (reconiliationTestCaseResult, error) { + originalState ...interface{}) (reconciliationTestCaseResult, error) { cache := &dummyOwnerCache{ data: make(map[string]stackOwnerCacheEntry), } childrenStore, err := newTestChildrenStore(originalState...) if err != nil { - return reconiliationTestCaseResult{}, err + return reconciliationTestCaseResult{}, err } stackStore := newTestStackStore(originalStack) chDiffs := make(chan *diff.StackStateDiff) @@ -142,7 +142,7 @@ func runReconcilierTestCase(originalStack *latest.Stack, defaultServiceType core close(chDiffs) close(chStatusUpdates) close(chChildrenDeletions) - return reconiliationTestCaseResult{}, err + return reconciliationTestCaseResult{}, err } operation(testee) @@ -151,18 +151,18 @@ func runReconcilierTestCase(originalStack *latest.Stack, defaultServiceType core close(chStatusUpdates) close(chChildrenDeletions) wg.Wait() - return reconiliationTestCaseResult{childResourceDeletions: childrenResourceDeletions, diffs: producedDiffs, statuses: producedStatusUpdates}, nil + return reconciliationTestCaseResult{childResourceDeletions: childrenResourceDeletions, diffs: producedDiffs, statuses: producedStatusUpdates}, nil } func runReconciliationTestCase(originalStack *latest.Stack, defaultServiceType coretypes.ServiceType, - originalState ...interface{}) (reconiliationTestCaseResult, error) { + originalState ...interface{}) (reconciliationTestCaseResult, error) { return runReconcilierTestCase(originalStack, defaultServiceType, func(testee *StackReconciler) { testee.reconcileStack(stackresources.ObjKey(originalStack.Namespace, originalStack.Name)) }, originalState...) } func runRemoveStackTestCase(originalStack *latest.Stack, defaultServiceType coretypes.ServiceType, - originalState ...interface{}) (reconiliationTestCaseResult, error) { + originalState ...interface{}) (reconciliationTestCaseResult, error) { return runReconcilierTestCase(originalStack, defaultServiceType, func(testee *StackReconciler) { testee.deleteStackChildren(originalStack) }, originalState...)