summaryrefslogtreecommitdiff
path: root/remote_test.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-10-28 11:59:04 +0100
committerCarlos Martín Nieto <[email protected]>2014-10-28 11:59:04 +0100
commitccfce74e182a5c588e20f6ed701e0a67e820de8e (patch)
tree1f8172827cc8306888d6678ffd8ccd7b09e1b4fa /remote_test.go
parent9c6db70fc2836b6f5eb56c505f9cc82461b999c3 (diff)
parent668aa5dae1690d1a061da728f83b2450485d47f4 (diff)
Merge pull request #129 from libgit2/cmn/const-type
Make the constants have types
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)
},
}