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
|
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
|
||||||
|
2
.github/workflows/style_check.yml
vendored
2
.github/workflows/style_check.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/ut_check.yml
vendored
2
.github/workflows/ut_check.yml
vendored
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user