From a6a83f8d9f940a5bcbe5847d8a043f9376662482 Mon Sep 17 00:00:00 2001 From: Zpekii Date: Sat, 3 Jan 2026 16:51:36 +0800 Subject: [PATCH] test: remove failure demonstration --- .gitea/workflows/deploy.yaml | 2 +- hello/hello_test.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index e89c3ae..347b2a7 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -26,7 +26,7 @@ jobs: - name: Check go version run: | go version - - name: Unit Tests + - name: Tests run: | cd ${{ gitea.workspace }} go test -cover ./... diff --git a/hello/hello_test.go b/hello/hello_test.go index f4cc434..f00e202 100644 --- a/hello/hello_test.go +++ b/hello/hello_test.go @@ -13,7 +13,4 @@ func TestHelloHandler(t *testing.T) { if w.Body.String() != expected { t.Errorf("Expected %q but got %q", expected, w.Body.String()) } - - // Force a failure for demonstration - t.Errorf("Forced failure for demonstration purposes") } \ No newline at end of file