mirror of https://github.com/statping/statping
remove http response from test logs
parent
acff0924a0
commit
548877a06e
|
@ -102,12 +102,11 @@ func TestGenericRoutes(t *testing.T) {
|
|||
|
||||
for _, v := range tests {
|
||||
t.Run(v.Name, func(t *testing.T) {
|
||||
body, t, err := RunHTTPTest(v, t)
|
||||
_, t, err := RunHTTPTest(v, t)
|
||||
assert.Nil(t, err)
|
||||
if err != nil {
|
||||
t.FailNow()
|
||||
}
|
||||
t.Logf("Test %v got: %v\n", v.Name, string(body))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,12 +24,11 @@ func TestMessageRoutes(t *testing.T) {
|
|||
|
||||
for _, v := range tests {
|
||||
t.Run(v.Name, func(t *testing.T) {
|
||||
body, t, err := RunHTTPTest(v, t)
|
||||
_, t, err := RunHTTPTest(v, t)
|
||||
assert.Nil(t, err)
|
||||
if err != nil {
|
||||
t.FailNow()
|
||||
}
|
||||
t.Logf("Test %v got: %v\n", v.Name, string(body))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,12 +24,11 @@ func TestServiceRoutes(t *testing.T) {
|
|||
|
||||
for _, v := range tests {
|
||||
t.Run(v.Name, func(t *testing.T) {
|
||||
body, t, err := RunHTTPTest(v, t)
|
||||
_, t, err := RunHTTPTest(v, t)
|
||||
assert.Nil(t, err)
|
||||
if err != nil {
|
||||
t.FailNow()
|
||||
}
|
||||
t.Logf("Test %v got: %v\n", v.Name, string(body))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,12 +24,11 @@ func TestUserRoutes(t *testing.T) {
|
|||
|
||||
for _, v := range tests {
|
||||
t.Run(v.Name, func(t *testing.T) {
|
||||
body, t, err := RunHTTPTest(v, t)
|
||||
_, t, err := RunHTTPTest(v, t)
|
||||
assert.Nil(t, err)
|
||||
if err != nil {
|
||||
t.FailNow()
|
||||
}
|
||||
t.Logf("Test %v got: %v\n", v.Name, string(body))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue