Skip to content

Commit

Permalink
Remove env var for odo dev
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Feb 28, 2023
1 parent 07419f3 commit aa4164c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions tests/helper/helper_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ type DevSessionOpts struct {
func StartDevMode(options DevSessionOpts) (devSession DevSession, out []byte, errOut []byte, endpoints map[string]string, err error) {
if options.RunOnPodman {
options.CmdlineArgs = append(options.CmdlineArgs, "--platform", "podman")
options.EnvVars = append(options.EnvVars, "ODO_EXPERIMENTAL_MODE=true")
}
c, err := expect.NewConsole(expect.WithStdout(os.Stdout))
if err != nil {
Expand Down Expand Up @@ -265,7 +264,6 @@ func DevModeShouldFail(options DevSessionOpts, substring string) (DevSession, []
args = append(args, options.CmdlineArgs...)
if options.RunOnPodman {
args = append(args, "--platform", "podman")
options.EnvVars = append(options.EnvVars, "ODO_EXPERIMENTAL_MODE=true")
}
session := Cmd("odo", args...).AddEnv(options.EnvVars...).Runner().session
WaitForOutputToContain(substring, 360, 10, session)
Expand Down
4 changes: 1 addition & 3 deletions tests/helper/helper_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ func StartLogsFollow(podman bool, opts ...string) (LogsSession, []byte, []byte,
args = append(args, "--platform", "podman")
}
session := CmdRunner("odo", args...)
if podman {
session.Command.Env = append(session.Command.Env, "ODO_EXPERIMENTAL_MODE=true")
}

result := LogsSession{
session: session,
}
Expand Down

0 comments on commit aa4164c

Please sign in to comment.