Skip to content

Commit f26c250

Browse files
committed
Accommodate platform in selfupdate stub.
1 parent 8adeaf9 commit f26c250

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/groovy/sdkman/steps/stub_steps.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ And(~'^the default "([^"]*)" version is "([^"]*)"$') { String candidate, String
1717
}
1818

1919
And(~'^an available selfupdate$') { ->
20-
primeEndpointWithString("/selfupdate/stable", 'echo "Successfully upgraded SDKMAN."')
21-
primeEndpointWithString("/selfupdate/beta", 'echo "Successfully upgraded SDKMAN."')
20+
primeEndpointWithString("/selfupdate/stable/${UnixUtils.inferPlatform()}", 'echo "Successfully upgraded SDKMAN."')
21+
primeEndpointWithString("/selfupdate/beta/${UnixUtils.inferPlatform()}", 'echo "Successfully upgraded SDKMAN."')
2222
}
2323

2424
And(~'^the candidate "([^"]*)" version "([^"]*)" is available for download$') { String candidate, String version ->

0 commit comments

Comments
 (0)