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"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -23,7 +24,7 @@ func TestIndexHandler(t *testing.T) {
|
||||||
status, http.StatusOK)
|
status, http.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
indexTemplate, err := ioutil.ReadFile("index.html")
|
indexTemplate, err := ioutil.ReadFile(filepath.Join("templates", "index.html"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal("Can't read index.html")
|
t.Fatal("Can't read index.html")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<html>
|
<html>
|
||||||
<h1>Stream URL</h1>
|
<h1>Stream URL</h1>
|
||||||
<form action="" method="GET">
|
<form method="GET">
|
||||||
<label>URL:</label>
|
<label>URL:</label>
|
||||||
<input type="text" name="URL" size="100">
|
<input type="text" name="URL" size="100">
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Add table
Reference in a new issue