Skip to content

Commit

Permalink
Merge pull request #7854 from jandubois/bats-k3s-version
Browse files Browse the repository at this point in the history
BATS workaround the failure to fetch k3s-versions.json
  • Loading branch information
Nino-K authored Dec 4, 2024
2 parents a02d93a + 3778dce commit 395be3e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bats/tests/helpers/vm.bash
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ launch_the_application() {
local args=("$@")
trace "$*"

# TODO workaround for https://github.com/rancher-sandbox/rancher-desktop/issues/7853
local k3s_versions="k3s-versions.json"
if [ -f "$PATH_BATS_ROOT/$k3s_versions" ]; then
create_file "$PATH_CACHE/$k3s_versions" <"$PATH_BATS_ROOT/$k3s_versions"
fi

if using_dev_mode; then
# translate args back into the internal API format
local api_args=()
Expand Down

0 comments on commit 395be3e

Please sign in to comment.