aboutsummaryrefslogtreecommitdiff
path: root/client/keys_test.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-09-11 20:40:26 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-09-11 20:40:26 +0100
commitadc3c7f16051d51a58d96e32082aaeb051e3da20 (patch)
treee7392468d78abf41cdd02e0bdf465784275f0662 /client/keys_test.go
parenta30d6403f723765b8f9b7609e7eb3ade0f5434a0 (diff)
Use %T instead of reflect.
Diffstat (limited to 'client/keys_test.go')
-rw-r--r--client/keys_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/keys_test.go b/client/keys_test.go
index 9e930d5..d98a982 100644
--- a/client/keys_test.go
+++ b/client/keys_test.go
@@ -22,7 +22,7 @@ func TestGenerateKeys(t *testing.T) {
t.Error(err)
}
if reflect.TypeOf(k).String() != tst.want {
- t.Errorf("Wrong key type returned. Got %s, wanted %s", reflect.TypeOf(k).String(), tst.want)
+ t.Errorf("Wrong key type returned. Got %T, wanted %s", k, tst.want)
}
}
}