File: 0002-Skip-internet-test.patch

package info (click to toggle)
golang-github-linode-linodego 1.55.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,112 kB
  • sloc: makefile: 96; sh: 52; python: 24
file content (24 lines) | stat: -rw-r--r-- 719 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Daniel Swarbrick <dswarbrick@debian.org>
Date: Fri, 15 Aug 2025 01:14:33 +0200
Subject: Skip internet test

Forwarded: no

This "unit test" is more of an integration test, since it requires
access to external dependencies, i.e., the internet.
---
 test/unit/images_test.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/unit/images_test.go b/test/unit/images_test.go
index a79baa9..338afe6 100644
--- a/test/unit/images_test.go
+++ b/test/unit/images_test.go
@@ -169,6 +169,7 @@ func TestImage_Update(t *testing.T) {
 }
 
 func TestImage_Upload(t *testing.T) {
+	t.Skip("Skipping test which requires internet access")
 	fixtureData, err := fixtures.GetFixture("image_upload")
 	assert.NoError(t, err)