Skip to content

Commit

Permalink
move html to testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
frioux committed Apr 6, 2019
1 parent 625ce00 commit 4f5b182
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/sweetmarias/all_test.go
Expand Up @@ -8,7 +8,7 @@ import (
) )


func TestAllCoffees(t *testing.T) { func TestAllCoffees(t *testing.T) {
f, err := os.Open("./all.html") f, err := os.Open("./testdata/all.html")
if err != nil { if err != nil {
t.Fatalf("Couldn't open all.html: %s", err) t.Fatalf("Couldn't open all.html: %s", err)
} }
Expand Down
2 changes: 1 addition & 1 deletion pkg/sweetmarias/sm_test.go
Expand Up @@ -14,7 +14,7 @@ import (
func TestLoadCoffee(t *testing.T) { func TestLoadCoffee(t *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html") w.Header().Set("Content-Type", "text/html")
f, err := os.Open("./sm.html") f, err := os.Open("./testdata/sm.html")
if err != nil { if err != nil {
panic(err) panic(err)
} }
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4f5b182

Please sign in to comment.