Skip to content

Commit

Permalink
test(e2e): fix broken env init e2e test due to flag name change (#1266)
Browse files Browse the repository at this point in the history
<!-- Provide summary of changes -->

<!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, 77" -->

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
  • Loading branch information
iamhopaul123 authored Aug 13, 2020
1 parent 1851c10 commit 27ecf7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/internal/client/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ copilot env init
--app $a
--profile $pr
--prod (optional)
--no-custom-resources (optional)
--default-config (optional)
*/
func (cli *CLI) EnvInit(opts *EnvInitRequest) (string, error) {
commands := []string{"env", "init",
Expand All @@ -295,7 +295,7 @@ func (cli *CLI) EnvInit(opts *EnvInitRequest) (string, error) {
commands = append(commands, "--prod")
}
if !opts.CustomizedEnv {
commands = append(commands, "--no-custom-resources")
commands = append(commands, "--default-config")
}
return cli.exec(exec.Command(cli.path, commands...))
}
Expand Down

0 comments on commit 27ecf7c

Please sign in to comment.