mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-14 11:22:15 +01:00
chore(tests): fix typo [skip ci]
This commit is contained in:
@@ -35,9 +35,9 @@ func startGotenbergContainer(ctx context.Context, env map[string]string) (*testc
|
|||||||
return nil, nil, fmt.Errorf("create Gotenberg container network: %w", err)
|
return nil, nil, fmt.Errorf("create Gotenberg container network: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
heathPath := "/health"
|
healthPath := "/health"
|
||||||
if env["API_ROOT_PATH"] != "" {
|
if env["API_ROOT_PATH"] != "" {
|
||||||
heathPath = fmt.Sprintf("%shealth", env["API_ROOT_PATH"])
|
healthPath = fmt.Sprintf("%shealth", env["API_ROOT_PATH"])
|
||||||
}
|
}
|
||||||
|
|
||||||
req := testcontainers.ContainerRequest{
|
req := testcontainers.ContainerRequest{
|
||||||
@@ -48,7 +48,7 @@ func startGotenbergContainer(ctx context.Context, env map[string]string) (*testc
|
|||||||
hostConfig.ExtraHosts = []string{"host.docker.internal:host-gateway"}
|
hostConfig.ExtraHosts = []string{"host.docker.internal:host-gateway"}
|
||||||
},
|
},
|
||||||
Networks: []string{n.Name},
|
Networks: []string{n.Name},
|
||||||
WaitingFor: wait.ForHTTP(heathPath),
|
WaitingFor: wait.ForHTTP(healthPath),
|
||||||
Env: env,
|
Env: env,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user