test: remove failure demonstration

This commit is contained in:
2026-01-03 16:51:36 +08:00
parent ae5303ed9e
commit a6a83f8d9f
2 changed files with 1 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ jobs:
- name: Check go version - name: Check go version
run: | run: |
go version go version
- name: Unit Tests - name: Tests
run: | run: |
cd ${{ gitea.workspace }} cd ${{ gitea.workspace }}
go test -cover ./... go test -cover ./...

View File

@@ -13,7 +13,4 @@ func TestHelloHandler(t *testing.T) {
if w.Body.String() != expected { if w.Body.String() != expected {
t.Errorf("Expected %q but got %q", expected, w.Body.String()) t.Errorf("Expected %q but got %q", expected, w.Body.String())
} }
// Force a failure for demonstration
t.Errorf("Forced failure for demonstration purposes")
} }