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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
From: Nicolas Peugnet <nicolas@club1.fr>
Date: Tue, 1 Jul 2025 15:12:57 +0200
Subject: Skip tests that require internet access
Origin: vendor
Forwarded: not-needed
Debian builds run on buildd machines that do not have internet access.
---
downloader_test.go | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/downloader_test.go b/downloader_test.go
index ee0f703..aa24536 100644
--- a/downloader_test.go
+++ b/downloader_test.go
@@ -29,6 +29,7 @@ func makeTmpFile(t *testing.T) string {
}
func TestDownload(t *testing.T) {
+ t.Skip("requires internet access")
tmpFile := makeTmpFile(t)
defer os.Remove(tmpFile)
@@ -48,6 +49,7 @@ func TestDownload(t *testing.T) {
}
func TestResume(t *testing.T) {
+ t.Skip("requires internet access")
tmpFile := makeTmpFile(t)
defer os.Remove(tmpFile)
@@ -72,6 +74,7 @@ func TestResume(t *testing.T) {
}
func TestNoResume(t *testing.T) {
+ t.Skip("requires internet access")
tmpFile := makeTmpFile(t)
defer os.Remove(tmpFile)
@@ -111,6 +114,7 @@ func TestInvalidRequest(t *testing.T) {
}
func TestRunAndPool(t *testing.T) {
+ t.Skip("requires internet access")
tmpFile := makeTmpFile(t)
defer os.Remove(tmpFile)
@@ -130,6 +134,7 @@ func TestRunAndPool(t *testing.T) {
}
func TestErrorOnFileOpening(t *testing.T) {
+ t.Skip("requires internet access")
tmpFile := makeTmpFile(t)
defer os.Remove(tmpFile)
@@ -151,6 +156,7 @@ func (r *roundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
// TestApplyUserAgentHeaderUsingConfig test uses the https://postman-echo.com/ service
func TestApplyUserAgentHeaderUsingConfig(t *testing.T) {
+ t.Skip("requires internet access")
type echoBody struct {
Headers map[string]string
}
|