Skip to content

Commit 015d649

Browse files
Skip AWS Test if no URI (#2102)
1 parent 0e23de1 commit 015d649

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/test/aws/aws_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ import (
2020

2121
func TestAWS(t *testing.T) {
2222
uri := os.Getenv("MONGODB_URI")
23+
if uri == "" {
24+
t.Skip("Skipping test: MONGODB_URI environment variable is not set")
25+
}
2326

2427
client, err := mongo.Connect(options.Client().ApplyURI(uri))
25-
require.NoError(t, err, "Connect error")
2628

2729
defer func() {
2830
err = client.Disconnect(context.Background())

0 commit comments

Comments
 (0)