Merged in feature/track-filesize (pull request #200)
track file sizes for all documents in system * feature complete needs dev testing
This commit is contained in:
@@ -70,7 +70,24 @@ func CreateFullNetwork(t testing.TB, ctx context.Context, cfg FullDependenciesCo
|
||||
|
||||
wg.Wait()
|
||||
|
||||
qService, err := queryapi.NewClientWithResponses(apiContainers[QueryAPIName].URI)
|
||||
// Wait for external readiness before creating the client.
|
||||
// This addresses the race condition where containers report healthy internally
|
||||
// but the external port mapping isn't fully ready, causing 404 errors in CI.
|
||||
err := WaitForExternalReadiness(apiContainers[QueryAPIName].URI, "/health", GetPollingTimeout())
|
||||
require.NoError(t, err, "QueryAPI not externally reachable")
|
||||
|
||||
// Wait for API routes to be registered.
|
||||
// The health endpoint may return 200 before all routes are registered,
|
||||
// causing "404 page not found" errors on actual API calls.
|
||||
err = WaitForAPIRoutes(apiContainers[QueryAPIName].URI, GetPollingTimeout())
|
||||
require.NoError(t, err, "QueryAPI routes not registered")
|
||||
|
||||
// Create API client with bounded HTTP timeout to prevent indefinite hangs
|
||||
// that were causing CI failures (goroutines blocking until 15-minute global timeout)
|
||||
qService, err := queryapi.NewClientWithResponses(
|
||||
apiContainers[QueryAPIName].URI,
|
||||
queryapi.WithHTTPClient(GetHTTPClient()),
|
||||
)
|
||||
require.NoError(t, err)
|
||||
|
||||
return Network{
|
||||
|
||||
Reference in New Issue
Block a user