Skip to content

Commit 4c81afe

Browse files
Fix Control API E2E test to skip when access token unavailable
Add conditional skip for control-api-workflows.test.ts when E2E_ABLY_ACCESS_TOKEN is not provided in CI environments
1 parent ada0630 commit 4c81afe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/e2e/control/control-api-workflows.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ describe('Control API E2E Workflow Tests', () => {
2222

2323
const accessToken = process.env.E2E_ABLY_ACCESS_TOKEN;
2424
if (!accessToken) {
25-
throw new Error('E2E_ABLY_ACCESS_TOKEN environment variable is required for control API e2e tests');
25+
console.log('E2E_ABLY_ACCESS_TOKEN not available, skipping Control API E2E tests');
26+
this.skip();
27+
return;
2628
}
2729

2830
// Set up CLI path and API client

0 commit comments

Comments
 (0)