From 45659165de2d31db6bd174d0dea89c2d550ddc2b Mon Sep 17 00:00:00 2001 From: Carl Montanari Date: Sun, 15 Oct 2023 18:19:17 -0700 Subject: [PATCH] fix: e2e test was trying to get obj outside of eventually bad idea :p --- e2e/suite/run.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/suite/run.go b/e2e/suite/run.go index 41dac7f5..236acb26 100644 --- a/e2e/suite/run.go +++ b/e2e/suite/run.go @@ -11,7 +11,7 @@ import ( const ( updateReconcileWait = 2 * time.Second eventuallyPollInterval = 3 * time.Second - eventuallyMaxTime = 60 * time.Second + eventuallyMaxTime = 120 * time.Second ) // Run executes a clabernetes e2e test. @@ -47,11 +47,11 @@ func Run(t *testing.T, steps []Step, testName string) { //nolint: thelper for idx := range objects { object := step.AssertObjects[kind][idx] - objectData := getter(t, namespace, kind, object.Name, object) - fileName := fmt.Sprintf("golden/%d-%s.%s.yaml", step.Index, kind, object.Name) if *clabernetestesthelper.Update { + objectData := getter(t, namespace, kind, object.Name, object) + clabernetestesthelper.WriteTestFixtureFile(t, fileName, objectData) // we just wrote the golden file of course it will match, no need to check