Skip to content

Commit

Permalink
fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikus1993 committed Feb 23, 2023
1 parent 0ed38f0 commit 4b7cb77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ func (container *redisContainer) Url(ctx context.Context) (string, error) {
return "", err
}

uri := fmt.Sprintf("redis://%s:%s", hostIP, mappedPort.Port())
port := mappedPort.Port()
uri := fmt.Sprintf("%s:%s", hostIP, port)

return uri, nil
}

0 comments on commit 4b7cb77

Please sign in to comment.