2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 05:31:44 +08:00

fix: tests

This commit is contained in:
耗子
2024-10-18 02:28:08 +08:00
parent 78543dac67
commit 595f5ba2d9
3 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -21,4 +21,4 @@ jobs:
run: |
cp config.example.yml config.yml
- name: Run tests
run: go test ./...
run: sudo go test ./...

View File

@@ -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() {