diff --git a/version.go b/version.go index ef0fe647..4df32dc7 100644 --- a/version.go +++ b/version.go @@ -16,7 +16,7 @@ var ( // VersionPrerelease is a pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release // such as "dev" (in development), "beta", "rc1", etc. - VersionPrerelease = "beta" + VersionPrerelease = "" ) // ProductName is the name of the product diff --git a/version_test.go b/version_test.go index 71579de5..9f21427f 100644 --- a/version_test.go +++ b/version_test.go @@ -3,13 +3,18 @@ package main import "testing" func TestGetVersionDisplay(t *testing.T) { + var expectedVersion = ProductName + " version " + Version + if VersionPrerelease != "" { + expectedVersion = expectedVersion + "-" + VersionPrerelease + } + expectedVersion = expectedVersion + "\n" tests := []struct { name string want string }{ { name: "Display Version", - want: ProductName + " version " + Version + "-" + VersionPrerelease + "\n", + want: expectedVersion, }, } for _, tt := range tests {