diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2017-02-19 00:25:42 +0000 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2017-02-19 00:43:10 +0000 |
commit | e8ff7ffe8e8c25195c64950b61c6c5754bbcd3ba (patch) | |
tree | 52dd38d68c07991bbbb6b8757b0769f4c5fab20e /lib/util_test.go | |
parent | 19dcff5d7245295d4508a71bb0ed2a886ada7a13 (diff) |
Add grpc signer
Diffstat (limited to 'lib/util_test.go')
-rw-r--r-- | lib/util_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util_test.go b/lib/util_test.go index 9e89297..b1f18a8 100644 --- a/lib/util_test.go +++ b/lib/util_test.go @@ -1,6 +1,7 @@ package lib import ( + "reflect" "testing" "github.com/nsheridan/cashier/testdata" @@ -10,7 +11,7 @@ import ( func TestGetPublicKey(t *testing.T) { t.Parallel() c, _, _, _, _ := ssh.ParseAuthorizedKey(testdata.Cert) - if GetPublicKey(c.(*ssh.Certificate)) != string(testdata.Cert) { + if !reflect.DeepEqual(GetPublicKey(c.(*ssh.Certificate)), testdata.Cert) { t.Fail() } } |