This commit is contained in:
lyyyuna 2020-09-11 16:06:35 +08:00
parent 15caa56c73
commit c4e12e6d86
4 changed files with 5 additions and 4 deletions

View File

@ -41,7 +41,7 @@ jobs:
needs: job_1
strategy:
matrix:
go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x]
go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x]
runs-on: ubuntu-latest
steps:
- name: Install Go

View File

@ -13,7 +13,7 @@ jobs:
name: vet and gofmt
strategy:
matrix:
go-version: [1.13.x, 1.14.x]
go-version: [1.13.x, 1.14.x, 1.15.x]
runs-on: ubuntu-latest
steps:
- name: Install Go

View File

@ -13,7 +13,7 @@ jobs:
name: go test
strategy:
matrix:
go-version: [1.13.x, 1.14.x]
go-version: [1.13.x, 1.14.x, 1.15.x]
runs-on: ubuntu-latest
steps:
- name: Install Go

View File

@ -1,6 +1,7 @@
package cover
import (
"bytes"
"fmt"
"net/http"
"net/http/httptest"
@ -188,7 +189,7 @@ func TestClearService(t *testing.T) {
// get profile with invalid force parameter
w := httptest.NewRecorder()
req, _ := http.NewRequest("POST", "/v1/cover/clear", nil)
req, _ := http.NewRequest("POST", "/v1/cover/clear", bytes.NewBuffer([]byte(`{}`)))
router.ServeHTTP(w, req)
assert.Equal(t, http.StatusExpectationFailed, w.Code)