mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-25 01:33:28 +01:00
Move output prefix from 60d388c4c2
to the inner test
This commit is contained in:
parent
8b9e3dfb10
commit
083569be17
@ -138,7 +138,6 @@ func TestPanicGuardNoPanic(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMergeMiddlewares(t *testing.T) {
|
||||
fmt.Println("Output prefix to avoid breaking gotestsum with panics")
|
||||
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write([]byte("test"))
|
||||
@ -175,6 +174,7 @@ func TestMergeMiddlewares(t *testing.T) {
|
||||
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
fmt.Println("Output prefix to avoid breaking gotestsum with panics")
|
||||
var out strings.Builder
|
||||
middlewares := mergeMiddlewares(
|
||||
withPanicGuard(nil),
|
||||
|
Loading…
Reference in New Issue
Block a user