Skip to content

Commit 06aa80e

Browse files
author
Sam Dodrill
committed
fix(tests): don't make assumptions about the user's system
1 parent c2f15a2 commit 06aa80e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/builds_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func buildSetup(t *testing.T) *itutils.DeisTestConfig {
4545
}
4646

4747
func buildsListTest(t *testing.T, params *itutils.DeisTestConfig) {
48-
Deis := "/usr/local/bin/deis "
48+
Deis := "deis "
4949
cmd := itutils.GetCommand("builds", "list")
5050
var cmdBuf bytes.Buffer
5151
tmpl := template.Must(template.New("cmd").Parse(cmd))

tests/integration-utils/itutils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"time"
1717
)
1818

19-
var Deis = "/usr/local/bin/deis "
19+
var Deis = "deis "
2020

2121
type DeisTestConfig struct {
2222
AuthKey string
@@ -80,7 +80,7 @@ func Curl(t *testing.T, params *DeisTestConfig) {
8080

8181
func AuthCancel(t *testing.T, params *DeisTestConfig) {
8282
fmt.Println("deis auth:cancel")
83-
child, err := gexpect.Spawn("/usr/local/bin/deis auth:cancel")
83+
child, err := gexpect.Spawn(Deis + " auth:cancel")
8484
if err != nil {
8585
t.Fatalf("command not started\n%v", err)
8686
}

0 commit comments

Comments
 (0)