1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: Maximiliano Curia <maxy@gnuservers.com.ar>
Date: Thu, 25 May 2017 18:07:25 +0200
Subject: Skip remote tests
Some tests rely on access to online resources; skip
these as this does not work in offline build environments.
Based on the previous patch created by Michael Stapelberg
<stapelberg@debian.org>
--- a/remote_test.go
+++ b/remote_test.go
@@ -37,6 +37,7 @@
compareStringList(t, expected, actual)
}
+/*
func assertHostname(cert *Certificate, valid bool, hostname string, t *testing.T) ErrorCode {
if hostname != "github.com" {
t.Fatal("Hostname does not match")
@@ -197,6 +198,7 @@
t.Fatal("Expected error getting a pruned reference")
}
}
+*/
func newChannelPipe(t *testing.T, w io.Writer, wg *sync.WaitGroup) (*os.File, error) {
pr, pw, err := os.Pipe()
|