mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
refactor(tests/server_utils): use etcd instance
Remove duplicated etcd start code.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user