Give enough time for writes to occur

A sync flag is what is really needed here.
pull/2269/head
Philip O'Toole 2015-04-13 12:46:06 -07:00
parent 7feb7b65e8
commit 119b39597c
1 changed files with 1 additions and 0 deletions

View File

@ -991,6 +991,7 @@ func TestServer_WriteAllDataTypes(t *testing.T) {
s.MustWriteSeries("foo", "raw", []influxdb.Point{{Name: "series2", Timestamp: mustParseTime("2000-01-01T00:00:00Z"), Fields: map[string]interface{}{"value": int64(30)}}})
s.MustWriteSeries("foo", "raw", []influxdb.Point{{Name: "series3", Timestamp: mustParseTime("2000-01-01T00:00:00Z"), Fields: map[string]interface{}{"value": "baz"}}})
s.MustWriteSeries("foo", "raw", []influxdb.Point{{Name: "series4", Timestamp: mustParseTime("2000-01-01T00:00:00Z"), Fields: map[string]interface{}{"value": true}}})
time.Sleep(time.Millisecond * 100)
f := func(t *testing.T, database, query, expected string) {
results := s.executeQuery(MustParseQuery(query), database, nil)