aboutsummaryrefslogtreecommitdiff
path: root/cmd/cashier
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-08-20 20:58:49 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-08-20 20:58:49 +0100
commit7e29b8a770a45b68638f5dba9ad58b755ccb4749 (patch)
tree8e1a36d970191dfb8d95c86db3f87163f6d15047 /cmd/cashier
parent70b5eb8e1f220a2849a6759eda321205fcb79111 (diff)
Run some tests in parallel
Diffstat (limited to 'cmd/cashier')
-rw-r--r--cmd/cashier/client_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/cashier/client_test.go b/cmd/cashier/client_test.go
index dcf674b..8fe3cd0 100644
--- a/cmd/cashier/client_test.go
+++ b/cmd/cashier/client_test.go
@@ -19,6 +19,7 @@ import (
)
func TestLoadCert(t *testing.T) {
+ t.Parallel()
priv, _ := ssh.ParseRawPrivateKey(testdata.Priv)
key := priv.(*rsa.PrivateKey)
pub, _ := ssh.NewPublicKey(&key.PublicKey)
@@ -58,6 +59,7 @@ func TestLoadCert(t *testing.T) {
}
func TestSignGood(t *testing.T) {
+ t.Parallel()
res := &lib.SignResponse{
Status: "ok",
Response: string(testdata.Cert),
@@ -86,6 +88,7 @@ func TestSignGood(t *testing.T) {
}
func TestSignBad(t *testing.T) {
+ t.Parallel()
res := &lib.SignResponse{
Status: "error",
Response: `{"response": "error"}`,