mirror of
https://github.com/tnb-labs/panel.git
synced 2026-08-30 17:05:19 +08:00
fix: tests
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -21,4 +21,4 @@ jobs:
|
||||
run: |
|
||||
cp config.example.yml config.yml
|
||||
- name: Run tests
|
||||
run: go test ./...
|
||||
run: sudo go test ./...
|
||||
+1
-1
@@ -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