Skip to content

Commit

Permalink
Remove unnecessary newline
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolden committed Jan 24, 2025
1 parent 43e3702 commit 33c89bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion client/go/internal/cli/cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ $ vespa deploy -t cloud -z perf.aws-us-east-1c`,
}
return err
}
log.Println()
if opts.Target.IsCloud() {
cli.printSuccess("Triggered deployment of ", color.CyanString("'"+pkg.Path+"'"), " with run ID ", color.CyanString(strconv.FormatInt(result.ID, 10)))
} else {
Expand Down
8 changes: 4 additions & 4 deletions client/go/internal/cli/cmd/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func TestDeployWait(t *testing.T) {
mockServiceStatus(client, "foo") // Look up services
assert.Nil(t, cli.Run("deploy", "--wait=3", pkg))
assert.Equal(t,
"\nSuccess: Deployed '"+pkg+"' with session ID 1\n",
"Success: Deployed '"+pkg+"' with session ID 1\n",
stdout.String())
}

Expand All @@ -194,7 +194,7 @@ func TestDeployZipWithURLTargetArgument(t *testing.T) {
cli.httpClient = client
assert.Nil(t, cli.Run(arguments...))
assert.Equal(t,
"\nSuccess: Deployed '"+applicationPackage+"' with session ID 0\n",
"Success: Deployed '"+applicationPackage+"' with session ID 0\n",
stdout.String())
assertDeployRequestMade("http://target:19071", client, t)
}
Expand Down Expand Up @@ -234,7 +234,7 @@ func TestDeployIncludesExpectedFiles(t *testing.T) {
assert.Nil(t, cli.Run("deploy", "--wait=0", "testdata/applications/withSource"))
applicationPackage := "testdata/applications/withSource/src/main/application"
assert.Equal(t,
"\nSuccess: Deployed '"+applicationPackage+"' with session ID 0\n",
"Success: Deployed '"+applicationPackage+"' with session ID 0\n",
stdout.String())

zipName := filepath.Join(t.TempDir(), "tmp.zip")
Expand Down Expand Up @@ -296,7 +296,7 @@ func assertDeploy(applicationPackage string, arguments []string, t *testing.T) {
cli.httpClient = client
assert.Nil(t, cli.Run(arguments...))
assert.Equal(t,
"\nSuccess: Deployed '"+applicationPackage+"' with session ID 0\n",
"Success: Deployed '"+applicationPackage+"' with session ID 0\n",
stdout.String())
assertDeployRequestMade("http://127.0.0.1:19071", client, t)
}
Expand Down

0 comments on commit 33c89bd

Please sign in to comment.