fixed test after moving index.html

This commit is contained in:
BroodjeAap 2020-06-29 20:16:08 +00:00
parent 077a56d637
commit 816bd38ae5
2 changed files with 3 additions and 2 deletions

View file

@ -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")
}

View file

@ -1,6 +1,6 @@
<html>
<h1>Stream URL</h1>
<form action="" method="GET">
<form method="GET">
<label>URL:</label>
<input type="text" name="URL" size="100">
</form>