Skip to content

Commit

Permalink
Merge pull request #10 from go-vela/bug/version
Browse files Browse the repository at this point in the history
Set proper version for Vela
  • Loading branch information
KellyMerrick authored Nov 8, 2019
2 parents d1cdd5d + d9834c3 commit 292f761
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions router/middleware/header_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func TestMiddleware_Secure_TLS(t *testing.T) {

func TestMiddleware_RequestVersion(t *testing.T) {
// setup types
wantVersion := "0.5.0"
wantVersion := "0.1.1"

// setup context
resp := httptest.NewRecorder()
Expand Down Expand Up @@ -293,7 +293,7 @@ func TestMiddleware_RequestVersion(t *testing.T) {

func TestMiddleware_RequestVersion_Prod(t *testing.T) {
// setup types
wantVersion := "0.5.0"
wantVersion := "0.1.1"

// setup context
resp := httptest.NewRecorder()
Expand Down Expand Up @@ -323,7 +323,7 @@ func TestMiddleware_RequestVersion_Prod(t *testing.T) {

func TestMiddleware_ResponseVersion(t *testing.T) {
// setup types
wantVersion := "0.5.0"
wantVersion := "0.1.1"

// setup context
resp := httptest.NewRecorder()
Expand Down Expand Up @@ -353,7 +353,7 @@ func TestMiddleware_ResponseVersion(t *testing.T) {

func TestMiddleware_ResponseVersion_Prod(t *testing.T) {
// setup types
wantVersion := "0.5.0"
wantVersion := "0.1.1"

// setup context
resp := httptest.NewRecorder()
Expand Down
4 changes: 2 additions & 2 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ var (
// VersionMajor is for an API incompatible changes
VersionMajor int64
// VersionMinor is for functionality in a backwards-compatible manner
VersionMinor int64 = 5
VersionMinor int64 = 1
// VersionPatch is for backwards-compatible bug fixes
VersionPatch int64
VersionPatch int64 = 1
// VersionDev indicates drone build number. Releases will be empty string.
VersionDev string
)
Expand Down

0 comments on commit 292f761

Please sign in to comment.