test: remove failure demonstration
This commit is contained in:
@@ -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 ./...
|
||||||
|
|||||||
@@ -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")
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user