diff --git a/tests/integration/cmd_devfile_deploy_test.go b/tests/integration/cmd_devfile_deploy_test.go index 8a226fe9074..d7b8e791d17 100644 --- a/tests/integration/cmd_devfile_deploy_test.go +++ b/tests/integration/cmd_devfile_deploy_test.go @@ -73,13 +73,13 @@ var _ = Describe("odo devfile deploy command tests", func() { deploymentName := "my-component" BeforeEach(func() { helper.CopyExample(filepath.Join("source", "nodejs"), commonVar.Context) + if ctx.setupFunc != nil { + ctx.setupFunc() + } helper.CopyExampleDevFile( filepath.Join("source", "devfiles", "nodejs", ctx.devfileName), path.Join(commonVar.Context, "devfile.yaml"), helper.DevfileMetadataNameSetter(cmpName)) - if ctx.setupFunc != nil { - ctx.setupFunc() - } }) When("running odo deploy", func() {