From c5ab72acc26a4ccd8b0a1ce7940bca55abca5ddb Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Sun, 13 Sep 2015 12:17:08 -0700 Subject: [PATCH] api: run all tests in parallel --- api/api_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/api_test.go b/api/api_test.go index e9114cf31..37d6b6a13 100644 --- a/api/api_test.go +++ b/api/api_test.go @@ -13,6 +13,8 @@ type configCallback func(c *Config) func makeClient(t *testing.T, cb1 configCallback, cb2 testutil.ServerConfigCallback) (*Client, *testutil.TestServer) { + // Always run these tests in parallel + t.Parallel() // Make client config conf := DefaultConfig() @@ -48,7 +50,6 @@ func TestDefaultConfig_env(t *testing.T) { } func TestSetQueryOptions(t *testing.T) { - // TODO t.Parallel() c, s := makeClient(t, nil, nil) defer s.Stop() @@ -76,7 +77,6 @@ func TestSetQueryOptions(t *testing.T) { } func TestSetWriteOptions(t *testing.T) { - // TODO t.Parallel() c, s := makeClient(t, nil, nil) defer s.Stop() @@ -92,7 +92,6 @@ func TestSetWriteOptions(t *testing.T) { } func TestRequestToHTTP(t *testing.T) { - // TODO t.Parallel() c, s := makeClient(t, nil, nil) defer s.Stop() @@ -157,7 +156,6 @@ func TestParseWriteMeta(t *testing.T) { } func TestQueryString(t *testing.T) { - // TODO t.Parallel() c, s := makeClient(t, nil, nil) defer s.Stop()