Skip to content

Commit

Permalink
fix: do not add protocol to reaper address
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Jun 18, 2024
1 parent 31696e5 commit de86c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func newReaper(ctx context.Context, sessionID string) (*Reaper, error) {
}
reaper.Container = c

endpoint, err := c.PortEndpoint(ctx, "8080", "")
endpoint, err := c.PortEndpoint(ctx, reaperListeningPort, "")
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -311,7 +311,7 @@ func reaperContainerNameFromSessionID(sessionID string) string {
// reuseReaperContainer constructs a Reaper from an already running reaper
// DockerContainer.
func reuseReaperContainer(ctx context.Context, sessionID string, reaperContainer *DockerContainer) (*Reaper, error) {
endpoint, err := reaperContainer.PortEndpoint(ctx, reaperListeningPort, "http")
endpoint, err := reaperContainer.PortEndpoint(ctx, reaperListeningPort, "")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit de86c28

Please sign in to comment.