Commit 960651e5 by Mario Trangoni

scripts/build/release_publisher/publisher_test.go: Fix trivial megacheck warning.

See,
$ gometalinter --vendor --deadline 6m --disable-all --enable=megacheck ./...
scripts/build/release_publisher/publisher_test.go:14:2:warning: should merge variable declaration with assignment on next line (S1021) (megacheck)
parent 0e7b6dcf
...@@ -3,15 +3,16 @@ package main ...@@ -3,15 +3,16 @@ package main
import "testing" import "testing"
func TestPreparingReleaseFromRemote(t *testing.T) { func TestPreparingReleaseFromRemote(t *testing.T) {
var builder releaseBuilder
versionIn := "v5.2.0-beta1" versionIn := "v5.2.0-beta1"
expectedVersion := "5.2.0-beta1" expectedVersion := "5.2.0-beta1"
whatsNewUrl := "https://whatsnews.foo/" whatsNewUrl := "https://whatsnews.foo/"
relNotesUrl := "https://relnotes.foo/" relNotesUrl := "https://relnotes.foo/"
expectedArch := "amd64" expectedArch := "amd64"
expectedOs := "linux" expectedOs := "linux"
buildArtifacts := []buildArtifact{{expectedOs,expectedArch, ".linux-amd64.tar.gz"}} buildArtifacts := []buildArtifact{{expectedOs, expectedArch, ".linux-amd64.tar.gz"}}
var builder releaseBuilder
builder = releaseFromExternalContent{ builder = releaseFromExternalContent{
getter: mockHttpGetter{}, getter: mockHttpGetter{},
...@@ -50,7 +51,6 @@ func (mockHttpGetter) getContents(url string) (string, error) { ...@@ -50,7 +51,6 @@ func (mockHttpGetter) getContents(url string) (string, error) {
return url, nil return url, nil
} }
func TestPreparingReleaseFromLocal(t *testing.T) { func TestPreparingReleaseFromLocal(t *testing.T) {
whatsNewUrl := "https://whatsnews.foo/" whatsNewUrl := "https://whatsnews.foo/"
relNotesUrl := "https://relnotes.foo/" relNotesUrl := "https://relnotes.foo/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment