diff --git a/tests/unit/test_helper.bash b/tests/unit/test_helper.bash index a998d67bc..0424c2a43 100644 --- a/tests/unit/test_helper.bash +++ b/tests/unit/test_helper.bash @@ -706,7 +706,10 @@ install_k3s() { echo "status: $status" assert_success - run /bin/bash -c "dokku registry:set --global image-repo-template '$DOCKERHUB_USERNAME/{{ .AppName }}'" + local test_basename + test_basename="$(basename "$BATS_TEST_FILENAME" .bats)" + + run /bin/bash -c "dokku registry:set --global image-repo-template '$DOCKERHUB_USERNAME/$test_basename-{{ .AppName }}'" echo "output: $output" echo "status: $status" assert_success