test: failure for demonstration
This commit is contained in:
@@ -13,4 +13,7 @@ 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