From 119b39597ceacf24fe4e01dcd438edb66f7b7788 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Mon, 13 Apr 2015 12:46:06 -0700 Subject: [PATCH] Give enough time for writes to occur A sync flag is what is really needed here. --- server_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server_test.go b/server_test.go index e104805536..302a3284f9 100644 --- a/server_test.go +++ b/server_test.go @@ -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)