Skip to content

Commit

Permalink
Check For GITHUB_ORGANIZATION
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Udit committed Sep 4, 2020
1 parent 88d0215 commit b229d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions github/provider_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func testAccPreCheck(t *testing.T) {
if v := os.Getenv("GITHUB_TOKEN"); v == "" {
t.Fatal("GITHUB_TOKEN must be set for acceptance tests")
}
if v := os.Getenv("GITHUB_OWNER"); v == "" {
t.Fatal("GITHUB_OWNER must be set for acceptance tests")
if v := os.Getenv("GITHUB_ORGANIZATION"); v == "" && os.Getenv("GITHUB_OWNER") == "" {
t.Fatal("GITHUB_ORGANIZATION or GITHUB_OWNER must be set for acceptance tests")
}
if v := os.Getenv("GITHUB_TEST_USER"); v == "" {
t.Fatal("GITHUB_TEST_USER must be set for acceptance tests")
Expand Down

0 comments on commit b229d28

Please sign in to comment.