Skip to content

Commit

Permalink
Make test optional
Browse files Browse the repository at this point in the history
Signed-off-by: sajit  <[email protected]>
  • Loading branch information
sajit committed Aug 27, 2024
1 parent 85ffa89 commit 1225ea2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mongodb-atlas/cmd/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ func TestMain(t *testing.T) {
publicKey := os.Getenv("mapuk")
privateKey := os.Getenv("maprk")
orgId := os.Getenv("maorgid")
if publicKey == "" || privateKey == "" || orgId == "" {
t.Skip("Skipping integration test.")
}

assert.NotNil(t, publicKey)
assert.NotNil(t, privateKey)
Expand Down

0 comments on commit 1225ea2

Please sign in to comment.