summaryrefslogtreecommitdiff
path: root/remote_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'remote_test.go')
-rw-r--r--remote_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote_test.go b/remote_test.go
index 6d81df4..631a6cd 100644
--- a/remote_test.go
+++ b/remote_test.go
@@ -46,7 +46,7 @@ func TestListRemotes(t *testing.T) {
compareStringList(t, expected, actual)
}
-func assertHostname(cert *Certificate, valid bool, hostname string, t *testing.T) int {
+func assertHostname(cert *Certificate, valid bool, hostname string, t *testing.T) ErrorCode {
if hostname != "github.com" {
t.Fatal("Hostname does not match")
return ErrUser
@@ -64,7 +64,7 @@ func TestCertificateCheck(t *testing.T) {
checkFatal(t, err)
callbacks := RemoteCallbacks{
- CertificateCheckCallback: func(cert *Certificate, valid bool, hostname string) int {
+ CertificateCheckCallback: func(cert *Certificate, valid bool, hostname string) ErrorCode {
return assertHostname(cert, valid, hostname, t)
},
}