fixed test after moving index.html
This commit is contained in:
parent
077a56d637
commit
816bd38ae5
2 changed files with 3 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue