Skip to content

Commit

Permalink
fix(test): ensure soft-serve is in PATH before running the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Jul 31, 2024
1 parent 3c56142 commit f2ab745
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testscript/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func TestMain(m *testing.M) {
os.Exit(1)
}

// Add binPath to PATH before running tests
os.Setenv("PATH", fmt.Sprintf("%s:%s", filepath.Dir(binPath), os.Getenv("PATH")))

// Run tests
os.Exit(m.Run())
}
Expand Down

0 comments on commit f2ab745

Please sign in to comment.