Skip to content

Commit

Permalink
Remove testing odo dev stops when the build command fails. odo dev no…
Browse files Browse the repository at this point in the history
…w gives a change to the user to fix the problem
  • Loading branch information
feloy committed Jul 8, 2022
1 parent 9046bd3 commit 30c723f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/integration/devfile/cmd_dev_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1402,23 +1402,6 @@ var _ = Describe("odo dev command tests", func() {
})
})

When("running odo dev and build command throws an error", func() {
var stderr string
BeforeEach(func() {
helper.CopyExampleDevFile(filepath.Join("source", "devfiles", "nodejs", "devfile.yaml"), filepath.Join(commonVar.Context, "devfile.yaml"))
helper.ReplaceString(filepath.Join(commonVar.Context, "devfile.yaml"), "npm install", "npm install-does-not-exist")
stderr = helper.Cmd("odo", "dev", "--random-ports").ShouldFail().Err()
})

It("should error out with some log", func() {
helper.MatchAllInOutput(stderr, []string{
"unable to exec command",
"Usage: npm <command>",
"Did you mean one of these?",
})
})
})

When("Create and dev java-springboot component", func() {
devfileCmpName := "java-spring-boot"
var session helper.DevSession
Expand Down

0 comments on commit 30c723f

Please sign in to comment.