mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 05:31:44 +08:00
fix: tests
This commit is contained in:
2
.github/workflows/codecov.yml
vendored
2
.github/workflows/codecov.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: go mod tidy
|
||||
- name: Run tests with coverage
|
||||
run: go test -v -coverprofile="coverage.out" ./...
|
||||
run: sudo go test -v -coverprofile="coverage.out" ./...
|
||||
- name: Upload coverage report to Codecov
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
|
||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -21,4 +21,4 @@ jobs:
|
||||
run: |
|
||||
cp config.example.yml config.yml
|
||||
- name: Run tests
|
||||
run: go test ./...
|
||||
run: sudo go test ./...
|
||||
@@ -37,7 +37,7 @@ func (suite *NTPTestSuite) TestUpdateSystemTime() {
|
||||
suite.T().Skip("Skipping on Windows")
|
||||
}
|
||||
err := UpdateSystemTime(time.Now())
|
||||
suite.Error(err) // GitHub action not support
|
||||
suite.NoError(err)
|
||||
}
|
||||
|
||||
func (suite *NTPTestSuite) TestUpdateSystemTimeZone() {
|
||||
|
||||
Reference in New Issue
Block a user