From 816bd38ae5855e7e81cd19435d13bb6131340f45 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Mon, 29 Jun 2020 20:16:08 +0000 Subject: [PATCH] fixed test after moving index.html --- main_test.go | 3 ++- templates/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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

-
+