mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-02 00:15:42 +02:00
remove redundant test
This commit is contained in:
parent
6698cf526f
commit
c079e13078
@ -199,10 +199,6 @@ func TestMergeMiddlewares(t *testing.T) {
|
|||||||
if w.Code != test.expectedStatusCode {
|
if w.Code != test.expectedStatusCode {
|
||||||
t.Errorf("expected response status to be %d, got %d", test.expectedStatusCode, w.Code)
|
t.Errorf("expected response status to be %d, got %d", test.expectedStatusCode, w.Code)
|
||||||
}
|
}
|
||||||
const expectedPiece = `127.0.0.1 GET "/"`
|
|
||||||
if !strings.Contains(out.String(), expectedPiece) {
|
|
||||||
t.Errorf("expected %q, got %q", expectedPiece, out.String())
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, expectedPiece := range test.expectedPieces {
|
for _, expectedPiece := range test.expectedPieces {
|
||||||
if !strings.Contains(out.String(), expectedPiece) {
|
if !strings.Contains(out.String(), expectedPiece) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user