Skip to content

Commit

Permalink
do not use log.Fatal
Browse files Browse the repository at this point in the history
Signed-off-by: kpacha <[email protected]>
  • Loading branch information
kpacha committed Mar 18, 2024
1 parent 2284277 commit 200c59b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/stack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"context"
"fmt"
"io"
"log"
"net/http"
"net/http/httptest"
"net/url"
Expand Down Expand Up @@ -61,7 +60,8 @@ func TestProxyStack_multi(t *testing.T) {
}]
}`
if err := os.WriteFile(cfgPath, []byte(fmt.Sprintf(cfgContent, s.URL, s.URL, s.URL)), 0666); err != nil {
log.Fatal(err)
t.Error(err)
return
}
defer os.Remove(cfgPath)
}
Expand Down

0 comments on commit 200c59b

Please sign in to comment.