fix ci
This commit is contained in:
parent
15caa56c73
commit
c4e12e6d86
2
.github/workflows/e2e_test_check.yml
vendored
2
.github/workflows/e2e_test_check.yml
vendored
@ -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
|
||||
|
2
.github/workflows/style_check.yml
vendored
2
.github/workflows/style_check.yml
vendored
@ -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
|
||||
|
2
.github/workflows/ut_check.yml
vendored
2
.github/workflows/ut_check.yml
vendored
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user