Skip to content

Commit

Permalink
Fail on provider test if APPOPTICS_TOKEN is not set OR empty (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
solarchad authored Sep 18, 2019
1 parent eb02107 commit c01f607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appoptics/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func TestProvider_impl(t *testing.T) {
}

func testAccPreCheck(t *testing.T) {
if v := os.Getenv("APPOPTICS_TOKEN"); v == "" {
v, ok := os.LookupEnv("APPOPTICS_TOKEN")
if !ok || v == "" {
t.Fatal("APPOPTICS_TOKEN must be set for acceptance tests")
}
}

0 comments on commit c01f607

Please sign in to comment.