Add small delay after POST and DELETE in tests to make sure write buffers have cleared out.

pull/269/head
Paul Dix 2014-02-24 15:29:07 -05:00
parent 18abe42987
commit aef2f1a72e
1 changed files with 6 additions and 2 deletions

View File

@ -176,11 +176,15 @@ func (self *ServerProcess) QueryWithUsername(database, query string, onlyLocal b
}
func (self *ServerProcess) Post(url, data string, c *C) *http.Response {
return self.Request("POST", url, data, c)
err := self.Request("POST", url, data, c)
time.Sleep(time.Millisecond * 10)
return err
}
func (self *ServerProcess) Delete(url, body string, c *C) *http.Response {
return self.Request("DELETE", url, body, c)
err := self.Request("DELETE", url, body, c)
time.Sleep(time.Millisecond * 10)
return err
}
func (self *ServerProcess) PostGetBody(url, data string, c *C) []byte {