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 needs: job_1
strategy: strategy:
matrix: 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 runs-on: ubuntu-latest
steps: steps:
- name: Install Go - name: Install Go

View File

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

View File

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

View File

@ -1,6 +1,7 @@
package cover package cover
import ( import (
"bytes"
"fmt" "fmt"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
@ -188,7 +189,7 @@ func TestClearService(t *testing.T) {
// get profile with invalid force parameter // get profile with invalid force parameter
w := httptest.NewRecorder() 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) router.ServeHTTP(w, req)
assert.Equal(t, http.StatusExpectationFailed, w.Code) assert.Equal(t, http.StatusExpectationFailed, w.Code)