Skip to content

Commit

Permalink
Only check for helm binary when doing acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhouston committed Dec 19, 2020
1 parent 2a34838 commit c4440d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions helm/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ var (
)

func TestMain(m *testing.M) {
_, err := exec.LookPath("helm")
if err != nil {
panic(`command "helm" needs to be available to run the test suite`)
}

testAccProvider = Provider()
testAccProviders = map[string]*schema.Provider{
"helm": testAccProvider,
Expand Down Expand Up @@ -86,6 +81,11 @@ func TestMain(m *testing.M) {

var stopRepositoryServer func()
if accTest {
_, err := exec.LookPath("helm")
if err != nil {
panic(`command "helm" needs to be available to run the test suite`)
}

// create the Kubernetes client
c, err := createKubernetesClient()
if err != nil {
Expand Down

0 comments on commit c4440d7

Please sign in to comment.