Skip to content

Commit

Permalink
Added go build tag so it build from go1.13 only
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilija Matoski committed Dec 30, 2020
1 parent 8dc9075 commit cc3baf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions middleware/timeout.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.13

package middleware

import (
Expand Down
4 changes: 2 additions & 2 deletions middleware/timeout_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.13

package middleware

import (
Expand Down Expand Up @@ -68,7 +70,6 @@ func TestTimeout(t *testing.T) {
})(c)

assert.NoError(t, err)

assert.EqualValues(t, http.StatusGatewayTimeout, rec.Code)
})

Expand All @@ -86,5 +87,4 @@ func TestTimeout(t *testing.T) {

assert.Error(t, err)
})

}

0 comments on commit cc3baf5

Please sign in to comment.