Debian Codegraph @

debian/patches/skip-tests-requiring-internet.patch

raw symbols SCIP
1 Description: Some tests require internet access. This patch skips them.
2 Author: Stephen Gelman <[email protected]>
3 Forwarded: not-needed
4 ---
5 --- a/internal/app/builder_test.go
6 +++ b/internal/app/builder_test.go
7 @@ -39,6 +39,8 @@
8 }
9
10 func TestExecQuickMode(t *testing.T) {
11 + // Test requires internet access
12 + t.Skip()
13 th := git.InitTestRepositoryFromLocal(t)
14 defer th.CleanUp(t)
15
16 --- a/internal/app/quick_test.go
17 +++ b/internal/app/quick_test.go
18 @@ -8,6 +8,8 @@
19 )
20
21 func TestQuick(t *testing.T) {
22 + // Test requires internet access
23 + t.Skip()
24 th := git.InitTestRepositoryFromLocal(t)
25 defer th.CleanUp(t)
26
27 --- a/internal/command/cmd_test.go
28 +++ b/internal/command/cmd_test.go
29 @@ -8,6 +8,8 @@
30 )
31
32 func TestRun(t *testing.T) {
33 + // Test must be run from git repo
34 + t.Skip()
35 wd, err := os.Getwd()
36 if err != nil {
37 t.Fatalf("Test Failed.")
38 --- a/internal/command/fetch_test.go
39 +++ b/internal/command/fetch_test.go
40 @@ -29,6 +29,8 @@
41 )
42
43 func TestFetchWithGit(t *testing.T) {
44 + // Test requires internet access
45 + t.Skip()
46 th := git.InitTestRepositoryFromLocal(t)
47 defer th.CleanUp(t)
48
49 @@ -47,6 +49,8 @@
50 }
51
52 func TestFetchWithGoGit(t *testing.T) {
53 + // Test requires internet access
54 + t.Skip()
55 th := git.InitTestRepositoryFromLocal(t)
56 defer th.CleanUp(t)
57
58 --- a/internal/command/pull_test.go
59 +++ b/internal/command/pull_test.go
60 @@ -24,6 +24,8 @@
61 )
62
63 func TestPullWithGit(t *testing.T) {
64 + // Test requires internet access
65 + t.Skip()
66 th := git.InitTestRepositoryFromLocal(t)
67 defer th.CleanUp(t)
68
69 @@ -41,6 +43,8 @@
70 }
71
72 func TestPullWithGoGit(t *testing.T) {
73 + // Test requires internet access
74 + t.Skip()
75 th := git.InitTestRepositoryFromLocal(t)
76 defer th.CleanUp(t)
77
78 --- a/internal/job/job_test.go
79 +++ b/internal/job/job_test.go
80 @@ -8,6 +8,8 @@
81 )
82
83 func TestStart(t *testing.T) {
84 + // Test requires internet access
85 + t.Skip()
86 th := git.InitTestRepositoryFromLocal(t)
87 defer th.CleanUp(t)
88