auth

Paddy 2014-09-07 Parent:d89740a34654 Child:111382010276

36:bd274615ce72 Browse Files

Allow executing tests in parallel. Add t.Parallel() to tests so they can execute in parallel.

client_test.go grant_test.go

     1.1 --- a/client_test.go	Sun Sep 07 04:49:45 2014 -0400
     1.2 +++ b/client_test.go	Sun Sep 07 19:06:17 2014 -0400
     1.3 @@ -34,6 +34,7 @@
     1.4  }
     1.5  
     1.6  func TestClientStoreSuccess(t *testing.T) {
     1.7 +	t.Parallel()
     1.8  	client := Client{
     1.9  		ID:          uuid.NewID(),
    1.10  		Secret:      "secret",
     2.1 --- a/grant_test.go	Sun Sep 07 04:49:45 2014 -0400
     2.2 +++ b/grant_test.go	Sun Sep 07 19:06:17 2014 -0400
     2.3 @@ -35,6 +35,7 @@
     2.4  }
     2.5  
     2.6  func TestGrantStoreSuccess(t *testing.T) {
     2.7 +	t.Parallel()
     2.8  	grant := Grant{
     2.9  		Code:        "code",
    2.10  		Created:     time.Now(),