Skip to content

Commit 4db6f53

Browse files
Skip atlas test if URI is empty
1 parent bf09441 commit 4db6f53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/cmd/testatlas/atlas_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ func TestAtlas(t *testing.T) {
122122
for _, tc := range cases {
123123
t.Run(fmt.Sprintf("%s (%s)", tc.name, tc.envVar), func(t *testing.T) {
124124
uri := os.Getenv(tc.envVar)
125-
assert.NotEmpty(t, uri, fmt.Sprintf("Environment variable %s is not set", tc.envVar))
125+
if uri == "" {
126+
t.Skipf("Environment variable %q is not set", tc.envVar)
127+
}
126128

127129
if tc.certKeyFile != "" {
128130
uri = addTLSCertKeyFile(t, tc.certKeyFile, uri)

0 commit comments

Comments
 (0)