We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae57cce commit 3e612daCopy full SHA for 3e612da
glow_test.go
@@ -2,6 +2,7 @@ package main
2
3
import (
4
"bytes"
5
+ "strings"
6
"testing"
7
)
8
@@ -16,6 +17,13 @@ func TestGlowSources(t *testing.T) {
16
17
18
for _, v := range tt {
19
t.Run(v, func(t *testing.T) {
20
+ // Start by checking for network issues.
21
+ _, nerr := readmeURL(v)
22
+ if nerr != nil && strings.Contains(nerr.Error(), "no such host") {
23
+ t.Logf("Error during execution (args: %s):\n%v", v, nerr)
24
+ t.Skip("Test uses network. Are you connected to the Internet?")
25
+ }
26
+
27
buf := &bytes.Buffer{}
28
err := executeArg(rootCmd, v, buf)
29
if err != nil {
0 commit comments