Skip to content

Commit

Permalink
h2non#422 fix a broken unit test with a bad file name reference
Browse files Browse the repository at this point in the history
  • Loading branch information
EyePulp committed Jan 26, 2024
1 parent 8c261a6 commit d258084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source_fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func TestFileSystemImageSource(t *testing.T) {
var body []byte
var err error
const fixtureFile = "testdata/large image.jpg"
const fixtureFile = "testdata/large.jpg"

source := NewFileSystemImageSource(&SourceConfig{MountPath: "testdata"})
fakeHandler := func(w http.ResponseWriter, r *http.Request) {
Expand All @@ -27,7 +27,7 @@ func TestFileSystemImageSource(t *testing.T) {
}

file, _ := os.Open(fixtureFile)
r, _ := http.NewRequest(http.MethodGet, "http://foo/bar?file=large%20image.jpg", file)
r, _ := http.NewRequest(http.MethodGet, "http://foo/bar?file=large.jpg", file)
w := httptest.NewRecorder()
fakeHandler(w, r)

Expand Down

0 comments on commit d258084

Please sign in to comment.