Skip to content

Commit

Permalink
version bump + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Sep 21, 2018
1 parent 0f8b7d8 commit bdff4b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions cmd/rr/cmd/version.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package cmd

import "time"

var (
// Version - defines build version.
Version = "local"

// BuildTime - defined build time.
BuildTime = time.Now().Format(time.RFC1123)
BuildTime = "development"
)
7 changes: 3 additions & 4 deletions service/http/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"io/ioutil"
"mime/multipart"
"net/http"
"net/http/httptest"
"net/url"
"os"
"runtime"
"strings"
"testing"
"time"
"net/http/httptest"
)

// get request and return body
Expand Down Expand Up @@ -113,14 +113,13 @@ func Test_Handler_JSON_error(t *testing.T) {

wr := httptest.NewRecorder()
rq := httptest.NewRequest("POST", "/", bytes.NewBuffer([]byte("{sd")))
rq.Header.Add("Content-Type","application/json")
rq.Header.Add("Content-Size","3")
rq.Header.Add("Content-Type", "application/json")
rq.Header.Add("Content-Size", "3")

st.ServeHTTP(wr, rq)
assert.Equal(t, 500, wr.Code)
}


func TestServer_Headers(t *testing.T) {
st := &Handler{
cfg: &Config{
Expand Down

0 comments on commit bdff4b2

Please sign in to comment.