diff --git a/src/test/groovy/sdkman/steps/stub_steps.groovy b/src/test/groovy/sdkman/steps/stub_steps.groovy index a27ea8d10..b56e80c98 100644 --- a/src/test/groovy/sdkman/steps/stub_steps.groovy +++ b/src/test/groovy/sdkman/steps/stub_steps.groovy @@ -17,8 +17,8 @@ And(~'^the default "([^"]*)" version is "([^"]*)"$') { String candidate, String } And(~'^an available selfupdate$') { -> - primeEndpointWithString("/selfupdate/stable", 'echo "Successfully upgraded SDKMAN."') - primeEndpointWithString("/selfupdate/beta", 'echo "Successfully upgraded SDKMAN."') + primeEndpointWithString("/selfupdate/stable/${UnixUtils.inferPlatform()}", 'echo "Successfully upgraded SDKMAN."') + primeEndpointWithString("/selfupdate/beta/${UnixUtils.inferPlatform()}", 'echo "Successfully upgraded SDKMAN."') } And(~'^the candidate "([^"]*)" version "([^"]*)" is available for download$') { String candidate, String version ->