server test removed

This commit is contained in:
asoseil 2018-01-09 01:38:08 +01:00
parent 83b33a3bb9
commit 7bd00b687b
1 changed files with 0 additions and 28 deletions

View File

@ -6,34 +6,6 @@ import (
"testing" "testing"
) )
func TestServer_Start(t *testing.T) {
// refactoring required
//s := Server{
// Host: "localhost",
// Port: 5000,
//}
//host := "http://localhost:5000/"
//urls := []string{
// host,
// host + "assets/js/all.min.js",
// host + "assets/css/app.css",
// host + "app/components/settings/index.html",
// host + "app/components/project/index.html",
// host + "app/components/project/index.html",
// host + "app/components/index.html",
//}
//err := s.Start()
//if err != nil {
// t.Fatal(err)
//}
//for _, elm := range urls {
// resp, err := http.Get(elm)
// if err != nil || resp.StatusCode != 200 {
// t.Fatal(err, resp.StatusCode, elm)
// }
//}
}
func TestServer_Open(t *testing.T) { func TestServer_Open(t *testing.T) {
cmd := map[string]string{ cmd := map[string]string{
"windows": "start", "windows": "start",