From ec67dead1182c3889f15ba7b9bd895863249a469 Mon Sep 17 00:00:00 2001 From: Parthvi Vala Date: Tue, 25 Apr 2023 17:08:09 +0530 Subject: [PATCH] Move test skip before waitgroup is initiated Signed-off-by: Parthvi Vala --- tests/integration/cmd_dev_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/integration/cmd_dev_test.go b/tests/integration/cmd_dev_test.go index b17eb795060..7c3d5fb85fe 100644 --- a/tests/integration/cmd_dev_test.go +++ b/tests/integration/cmd_dev_test.go @@ -1039,6 +1039,11 @@ ComponentSettings: var stdout string var stderr string BeforeEach(func() { + if manual { + if os.Getenv("SKIP_KEY_PRESS") == "true" { + Skip("This is a unix-terminal specific scenario, skipping") + } + } var ( wg sync.WaitGroup err error @@ -1057,10 +1062,6 @@ ComponentSettings: dst := "memoryLimit: 1023Mi" helper.ReplaceString("devfile.yaml", src, dst) if manual { - if os.Getenv("SKIP_KEY_PRESS") == "true" { - Skip("This is a unix-terminal specific scenario, skipping") - } - devSession.PressKey('p') } wg.Wait()