From 197f63a74fda46cdb8fc4219b736716f8cae1902 Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Sun, 23 Jul 2023 15:16:22 +0800 Subject: [PATCH] fix: upgrade codecov from v1 to v3 --- .github/workflows/unittest.yml | 4 ++-- hrp/step_request_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 7b84a172..cb66a908 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -50,7 +50,7 @@ jobs: poetry run coverage xml poetry run coverage report -m - name: Codecov - uses: codecov/codecov-action@v1.0.5 + uses: codecov/codecov-action@v3 with: # User defined upload name. Visible in Codecov UI name: httprunner @@ -83,7 +83,7 @@ jobs: - name: Run coverage run: go test -coverprofile="cover.out" -covermode=atomic -race ./... - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: name: hrp (HttpRunner+) # User defined upload name. Visible in Codecov UI token: ${{ secrets.CODECOV_TOKEN }} # Repository upload token diff --git a/hrp/step_request_test.go b/hrp/step_request_test.go index 783f11b8..143c9cec 100644 --- a/hrp/step_request_test.go +++ b/hrp/step_request_test.go @@ -180,11 +180,11 @@ func TestRunCaseWithTimeout(t *testing.T) { testcase2 := &TestCase{ Config: NewConfig("TestCase2"). - SetRequestTimeout(10). // set global timeout to 10s + SetRequestTimeout(5). // set global timeout to 10s SetBaseURL("https://postman-echo.com"), TestSteps: []IStep{ NewStep("step1"). - GET("/delay/11"). + GET("/delay/10"). Validate(). AssertEqual("status_code", 200, "check status code"), },