Skip to content

Commit

Permalink
Check for correct ENV variable in acceptence tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey committed Mar 18, 2020
1 parent a4509c9 commit 85e298f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions connect/provider_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package connect

import (
"log"
"os"
"testing"

"github.com/hashicorp/terraform/helper/schema"
Expand All @@ -25,9 +25,9 @@ func TestProvider(t *testing.T) {
}

func testAccPreCheck(t *testing.T) {
client := testProvider.Meta()
log.Printf("[INFO] Checking KafkaConnect client")
if client == nil {
t.Fatal("No client")
connectVar := "KAFKA_CONNECT_URL"
value := os.Getenv(connectVar)
if value == "" {
t.Fatalf("%s env var must be set", connectVar)
}
}

0 comments on commit 85e298f

Please sign in to comment.