Skip to content

Commit

Permalink
Fix paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Jan 31, 2024
1 parent 70ee5a7 commit 96316e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler/middleware/br/br_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func TestBrotliErrorReturned(t *testing.T) {
func TestBrotliWithStatic(t *testing.T) {
e := echo.New()
e.Use(br.Brotli())
e.Static("/test", "../../public/image/layout")
e.Static("/test", "../../../public/image/layout")
req := httptest.NewRequest(http.MethodGet, "/test/favicon-152x152.png", nil)
req.Header.Set(echo.HeaderAcceptEncoding, br.BrotliScheme)
rec := httptest.NewRecorder()
Expand All @@ -144,7 +144,7 @@ func TestBrotliWithStatic(t *testing.T) {
}
r := brotli.NewReader(rec.Body)

want, err := os.ReadFile("../../public/image/layout/favicon-152x152.png")
want, err := os.ReadFile("../../../public/image/layout/favicon-152x152.png")
if assert.NoError(t, err) {
buf := new(bytes.Buffer)
_, err = buf.ReadFrom(r)
Expand Down

0 comments on commit 96316e5

Please sign in to comment.