diff --git a/main_test.go b/main_test.go index 74788be..70f617c 100755 --- a/main_test.go +++ b/main_test.go @@ -4,6 +4,7 @@ import ( "io/ioutil" "net/http" "net/http/httptest" + "path/filepath" "testing" ) @@ -23,7 +24,7 @@ func TestIndexHandler(t *testing.T) { status, http.StatusOK) } - indexTemplate, err := ioutil.ReadFile("index.html") + indexTemplate, err := ioutil.ReadFile(filepath.Join("templates", "index.html")) if err != nil { t.Fatal("Can't read index.html") } diff --git a/templates/index.html b/templates/index.html index 71df467..f6fe63a 100755 --- a/templates/index.html +++ b/templates/index.html @@ -1,6 +1,6 @@

Stream URL

-
+