Skip to content

Commit

Permalink
Move test skip before waitgroup is initiated
Browse files Browse the repository at this point in the history
Signed-off-by: Parthvi Vala <pvala@redhat.com>
  • Loading branch information
valaparthvi committed Apr 25, 2023
1 parent cbe4968 commit ec67dea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/integration/cmd_dev_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit ec67dea

Please sign in to comment.