Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Oct 23, 2023
1 parent b33abc9 commit 911fa36
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/e2e/setup/price-feeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,16 @@ func (s *E2ETestSuite) runPriceFeeder(valIndex int) {
)
s.Require().NoError(err)

endpoint := fmt.Sprintf("http://%s/api/v1/prices", s.priceFeederResource.GetHostPort(PriceFeederServerPort))
var endpoint string
switch os.Getenv("DOCKER_HOST") {
case "":
endpoint = s.priceFeederResource.GetHostPort(PriceFeederServerPort)
default:
endpoint = s.priceFeederResource.Container.NetworkSettings.Networks["bridge"].IPAddress + ":" + s.priceFeederResource.GetPort(PriceFeederServerPort)
}

endpoint = fmt.Sprintf("http://%s/api/v1/prices", endpoint)
s.T().Log("this is the endpoint:", endpoint, PriceFeederContainerRepo)

checkHealth := func() bool {
resp, err := http.Get(endpoint)
Expand Down

0 comments on commit 911fa36

Please sign in to comment.