From f26c25056ed7f75d13c0818ec20a5402057fb26b Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Sat, 6 Aug 2022 16:50:10 +0100 Subject: [PATCH] Accommodate platform in selfupdate stub. --- src/test/groovy/sdkman/steps/stub_steps.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ->