cleanup: Do not use path calculation in multi-index integration tests #562
Labels
area/multi-index
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Right now the integration tests for TestKrewIndex** methods have:
We should avoid guessing directory layouts in the test code, and in general.
environment.Paths
type is supposed to calculate path segments.It's advisable to move these to use:
after the multi-index switch can be removed. Otherwise these tests will also need os.Setenv + "defer os.Unsetenv" with
constants.EnableMultiIndexSwitch
to influence how environment.Paths computes paths.cc: @chriskim06
/kind cleanup
/priority important-soon
/area multi-index
The text was updated successfully, but these errors were encountered: