Skip to content

Commit

Permalink
fixup! test: fix acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Nov 1, 2023
1 parent 1e50d85 commit dc2e3c9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions builder/hcloud/builder_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ import (
)

func TestBuilderAcc_basic(t *testing.T) {
if v := os.Getenv("HCLOUD_TOKEN"); v == "" {
t.Skip("HCLOUD_TOKEN must be set for acceptance tests")
}

testCase := &acctest.PluginTestCase{
Name: "hcloud_basic_test",
Name: "hcloud_basic_test",
Setup: func() error {
if v := os.Getenv("HCLOUD_TOKEN"); v == "" {
return fmt.Errorf("HCLOUD_TOKEN must be set for acceptance tests")
}
return nil
},
Template: testBuilderAccBasic,
Check: func(buildCommand *exec.Cmd, logfile string) error {
if buildCommand.ProcessState != nil {
Expand Down

0 comments on commit dc2e3c9

Please sign in to comment.