refactor(tests/server_utils): use etcd instance

Remove duplicated etcd start code.
This commit is contained in:
Yicheng Qin
2014-05-01 17:59:35 -07:00
parent b0ffb4fd10
commit 7dce4c8fbb
2 changed files with 23 additions and 92 deletions

View File

@@ -72,4 +72,7 @@ func (h *CORSHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
}
h.Handler.ServeHTTP(w, req)
// Flush before leaving to send out all data.
w.(http.Flusher).Flush()
}