Skip to content

Commit

Permalink
AG-1609: update lock file, add healthcheck so playwright successfully…
Browse files Browse the repository at this point in the history
… starts and waits for agora-apex before running tests
  • Loading branch information
hallieswan committed Jan 14, 2025
1 parent 64b79b6 commit 592777f
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 51 deletions.
2 changes: 1 addition & 1 deletion apps/agora/app/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: 'nx run agora-apex:serve-detach',
url: 'http://localhost:8000',
url: `${baseURL}/health`,
reuseExistingServer: !process.env['CI'],
cwd: workspaceRoot,
timeout: 60000 * 3, // give time for agora-data to populate agora-mongo
Expand Down
5 changes: 5 additions & 0 deletions docker/agora/services/apex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ services:
- agora
ports:
- '8000:80'
healthcheck:
test: ['CMD', 'curl', '--fail', 'http://localhost:80/health']
interval: 30s
timeout: 10s
retries: 3
depends_on:
agora-api-docs:
condition: service_healthy
Expand Down
Loading

0 comments on commit 592777f

Please sign in to comment.