Skip to content

Commit

Permalink
rsakey: Improve hydra integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: arekkas <aeneas@ory.am>
  • Loading branch information
arekkas authored and aeneasr committed Aug 31, 2018
1 parent c266a84 commit e8b7a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rsakey/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestManager(t *testing.T) {
}

func connectToHydra(t *testing.T) *hydra.CodeGenSDK {
if url := os.Getenv("TEST_HYDRA_URL"); url != "" {
if url := os.Getenv("TEST_HYDRA_ADMIN_URL"); url != "" {
sdk, err := hydra.NewSDK(&hydra.Configuration{
AdminURL: url,
})
Expand Down Expand Up @@ -121,7 +121,7 @@ func connectToHydra(t *testing.T) *hydra.CodeGenSDK {

if err = pool.Retry(func() error {
var err error
u := "http://localhost:" + resource.GetPort("4444/tcp") + "/health/status"
u := "http://localhost:" + resource.GetPort("4445/tcp") + "/health/status"
t.Logf("Trying to connect to ORY Hydra at %s", u)
response, err := http.Get(u)
if err != nil {
Expand Down

0 comments on commit e8b7a58

Please sign in to comment.