Skip to content

Commit

Permalink
fix(setup/domain): fix progress ticker output
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Feb 9, 2023
1 parent b1d859f commit 5005380
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions pkg/commands/compute/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ func TestDeploy(t *testing.T) {
wantError: fmt.Sprintf("error creating domain: %s", testutil.Err.Error()),
wantOutput: []string{
"Creating service...",
"Creating domain '",
},
},
// The following test doesn't provide a Service ID by either a flag nor the
Expand Down Expand Up @@ -395,7 +394,6 @@ func TestDeploy(t *testing.T) {
},
wantError: fmt.Sprintf("error configuring the service: %s", testutil.Err.Error()),
wantOutput: []string{
"Creating domain '",
"Cleaning up service",
"Removing Service ID from fastly.toml",
"Cleanup complete",
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/compute/setup/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ func (d *Domains) validateDomain(input string) error {
func (d *Domains) createDomain(name string, attempt int) error {
if attempt > 1 {
d.Progress = text.ResetProgress(d.Stdout, d.Verbose)
d.Progress.Step(fmt.Sprintf("Creating domain '%s'...", name))
}
d.Progress.Step(fmt.Sprintf("Creating domain '%s'...", name))

_, err := d.APIClient.CreateDomain(&fastly.CreateDomainInput{
ServiceID: d.ServiceID,
Expand Down

0 comments on commit 5005380

Please sign in to comment.