We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3e1feb commit 35b3dbeCopy full SHA for 35b3dbe
tests/test_util.go
@@ -29,6 +29,7 @@ import (
29
"os"
30
"strconv"
31
"strings"
32
+ "sync"
33
"testing"
34
"time"
35
@@ -54,8 +55,9 @@ const (
54
55
)
56
57
var (
- maskAny = errors.WithStack
58
- syncClientCache client.ClientCache
+ maskAny = errors.WithStack
59
+ syncClientCache client.ClientCache
60
+ showEnterpriseImageOnce sync.Once
61
62
63
// longOrSkip checks the short test flag.
@@ -73,6 +75,10 @@ func getEnterpriseImageOrSkip(t *testing.T) string {
73
75
image := strings.TrimSpace(os.Getenv("ENTERPRISEIMAGE"))
74
76
if image == "" {
77
t.Skip("Skipping test because ENTERPRISEIMAGE is not set")
78
+ } else {
79
+ showEnterpriseImageOnce.Do(func() {
80
+ t.Logf("Using enterprise image: %s", image)
81
+ })
82
}
83
return image
84
0 commit comments