aboutsummaryrefslogtreecommitdiff
path: root/lib/util_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util_test.go')
-rw-r--r--lib/util_test.go3
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()
}
}