Skip to content

Commit

Permalink
fix testdata location
Browse files Browse the repository at this point in the history
  • Loading branch information
azimut committed Oct 2, 2021
1 parent e78184a commit f2b8a4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/hackernews/comment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestMakeComments(t *testing.T) {
file, err := ioutil.ReadFile("testdata/hn.html")
file, err := ioutil.ReadFile("../../testdata/hn.html")
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/hackernews/header_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestNewHeader(t *testing.T) {
file, err := ioutil.ReadFile("testdata/hn.html")
file, err := ioutil.ReadFile("../../testdata/hn.html")
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit f2b8a4b

Please sign in to comment.