Skip to content

chore: add UT for PD/TiKV/TiDB/TiFlash APIs #44

chore: add UT for PD/TiKV/TiDB/TiFlash APIs

chore: add UT for PD/TiKV/TiDB/TiFlash APIs #44

Triggered via pull request December 26, 2024 06:30
Status Failure
Total duration 3m 51s
Artifacts

ci-v2.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
lint: pkg/pdapi/v1/client_test.go#L60
Error return value of `w.Write` is not checked (errcheck)
lint: pkg/pdapi/v1/client_test.go#L113
Error return value of `w.Write` is not checked (errcheck)
lint: pkg/pdapi/v1/client_test.go#L144
Error return value of `w.Write` is not checked (errcheck)
lint: pkg/pdapi/v1/client_test.go#L706
string `/pd/api/v1/schedulers/evict-leader-scheduler-4` has 4 occurrences, make it a constant (goconst)
lint: pkg/pdapi/v1/client_test.go#L676
string `/pd/api/v1/schedulers` has 6 occurrences, make it a constant (goconst)
lint: pkg/pdapi/v1/client_test.go#L683
string `/pd/api/v1/scheduler-config/evict-leader-scheduler/list` has 4 occurrences, make it a constant (goconst)
lint: pkg/pdapi/v1/client_test.go#L555
ST1003: var getMembersJsonStr should be getMembersJSONStr (stylecheck)
lint: pkg/pdapi/v1/client_test.go#L588
ST1003: var getMembersJsonStr should be getMembersJSONStr (stylecheck)
lint: pkg/pdapi/v1/client_test.go#L125
float-compare: use assert.InEpsilon (or InDelta) (testifylint)
lint: pkg/tikvapi/v1/control_test.go#L44
require-error: for error assertions use require (testifylint)
verify
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
build
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
unit
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
lint
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2