From 1ec76f7b8d34faefcd05cfcc58c73058530ba6a6 Mon Sep 17 00:00:00 2001 From: toyamagu-2021 Date: Mon, 7 Aug 2023 22:11:06 +0900 Subject: [PATCH] fix: wait after create cm Signed-off-by: toyamagu-2021 --- test/e2e/workflow_configmap_substitution_test.go | 4 ++++ test/e2e/workflow_inputs_orverridable_test.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/e2e/workflow_configmap_substitution_test.go b/test/e2e/workflow_configmap_substitution_test.go index 2b9e7a16d5c5..7328010388fd 100644 --- a/test/e2e/workflow_configmap_substitution_test.go +++ b/test/e2e/workflow_configmap_substitution_test.go @@ -5,6 +5,7 @@ package e2e import ( "testing" + "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" @@ -52,6 +53,7 @@ spec: "cmref-parameters", map[string]string{"msg": "hello world"}, map[string]string{"workflows.argoproj.io/configmap-type": "Parameter"}). + Wait(1 * time.Second). SubmitWorkflow(). WaitForWorkflow(fixtures.ToBeSucceeded). DeleteConfigMap("cmref-parameters"). @@ -95,6 +97,7 @@ spec: "cmref-parameters", map[string]string{"msg": "hello world"}, map[string]string{"workflows.argoproj.io/configmap-type": "Parameter"}). + Wait(1 * time.Second). SubmitWorkflow(). WaitForWorkflow(fixtures.ToBeSucceeded). DeleteConfigMap("cmref-parameters"). @@ -173,6 +176,7 @@ spec: "cmref-parameters", map[string]string{"msg": "hello world"}, map[string]string{"workflows.argoproj.io/configmap-type": "Parameter"}). + Wait(1 * time.Second). SubmitWorkflow(). WaitForWorkflow(fixtures.ToBeSucceeded). DeleteConfigMap("cmref-parameters"). diff --git a/test/e2e/workflow_inputs_orverridable_test.go b/test/e2e/workflow_inputs_orverridable_test.go index 6c62245c5c90..e92f72a3afb1 100644 --- a/test/e2e/workflow_inputs_orverridable_test.go +++ b/test/e2e/workflow_inputs_orverridable_test.go @@ -5,6 +5,7 @@ package e2e import ( "testing" + "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" @@ -53,6 +54,7 @@ spec: "cmref-parameters", map[string]string{"cmref-key": "input-value"}, map[string]string{"workflows.argoproj.io/configmap-type": "Parameter"}). + Wait(1 * time.Second). SubmitWorkflow(). WaitForWorkflow(fixtures.ToBeSucceeded). DeleteConfigMap("cmref-parameters"). @@ -105,6 +107,7 @@ spec: "new-cmref-parameters", map[string]string{"cmref-key": "arg-value"}, map[string]string{"workflows.argoproj.io/configmap-type": "Parameter"}). + Wait(1 * time.Second). SubmitWorkflow(). WaitForWorkflow(fixtures.ToBeSucceeded). DeleteConfigMap("cmref-parameters"). @@ -188,6 +191,7 @@ spec: "cmref-parameters", map[string]string{"cmref-key": "arg-value"}, map[string]string{"workflows.argoproj.io/configmap-type": "Parameter"}). + Wait(1 * time.Second). SubmitWorkflow(). WaitForWorkflow(fixtures.ToBeSucceeded). DeleteConfigMap("cmref-parameters").