test: update

This commit is contained in:
fatedier
2017-03-10 00:52:32 +08:00
parent 307b74cc13
commit f83a2a73ab
12 changed files with 53 additions and 115 deletions

15
tests/http_server.go Normal file
View File

@ -0,0 +1,15 @@
package tests
import (
"fmt"
"net/http"
)
func StartHttpServer() {
http.HandleFunc("/", request)
http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", 10702), nil)
}
func request(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(HTTP_RES_STR))
}