From e8ff7ffe8e8c25195c64950b61c6c5754bbcd3ba Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Sun, 19 Feb 2017 00:25:42 +0000 Subject: Add grpc signer --- lib/util_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/util_test.go') 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() } } -- cgit v1.2.3