add https test.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-07-10 16:16:06 +08:00
parent def178ca0e
commit bc6aeeb4f1
4 changed files with 73 additions and 301 deletions

View File

@@ -59,7 +59,7 @@ func TestRunTLSServer(t *testing.T) {
// otherwise the main thread will complete
time.Sleep(5 * time.Millisecond)
assert.Error(t, RunHTTPServer())
gofight.TestRequest(t, "https://localhost:8087/api/stat/go")
}
func TestRootHandler(t *testing.T) {