Skip to content

Commit 261374a

Browse files
committed
fix(_tests): check for "deis" in the $PATH
Looking for the "deis" CLI in a hard-coded location isn't likely to work when the tests themselves are built as an executable.
1 parent a22bf94 commit 261374a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

_tests/tests_suite_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ var _ = BeforeSuite(func() {
4545
workflowPort := os.Getenv("DEIS_WORKFLOW_SERVICE_PORT")
4646
Expect(workflowHost).ShouldNot(BeEmpty())
4747
Expect(workflowPort).ShouldNot(BeEmpty())
48-
Expect("../client/deis").Should(BeAnExistingFile())
48+
// use the "deis" executable in the search $PATH
49+
_, err := exec.LookPath("deis")
50+
Expect(err).NotTo(HaveOccurred())
4951

5052
// register the test-admin user
5153
register(url, testAdminUser, testAdminPassword, testAdminEmail)

0 commit comments

Comments
 (0)