Skip to content

Commit

Permalink
Make httpbin location configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Feb 23, 2024
1 parent fa68971 commit ea56d3f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/Superluminal-Model-Tests/HttpRequestTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ HttpRequestTest >> fullNameVersion1dot0dot0MediaType [
{ #category : 'private' }
HttpRequestTest >> httpbinLocation [

^ 'http://localhost/anything'
| hostname |

hostname := LanguagePlatform current os
environmentAt: 'CI_HTTPBIN_HOSTNAME'
ifPresent: [ :hostnameInVariable | hostnameInVariable ]
ifAbsent: [ 'localhost' ].

^ 'http://<1s>/anything' expandMacrosWith: hostname
]

{ #category : 'private' }
Expand Down

0 comments on commit ea56d3f

Please sign in to comment.