Skip to content

Commit 8742473

Browse files
committed
Increase timeouts for flaky tests
1 parent c654399 commit 8742473

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/test/container-features/containerFeaturesOCI.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ describe('getRef()', async function () {
255255
});
256256

257257
describe('Test OCI Pull', async function () {
258-
this.timeout('10s');
258+
// These tests fetch manifests/blobs from a live OCI registry, so allow
259+
// extra time for auth/token exchange and transient network latency in CI.
260+
this.timeout('60s');
259261

260262
it('Parse OCI identifier', async function () {
261263
const feat = getRef(output, 'ghcr.io/codspace/features/ruby:1');

src/test/container-features/featureHelpers.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ describe('validate processFeatureIdentifier', async function () {
5757
console.log(`workspaceRoot = ${workspaceRoot}, defaultConfigPath = ${defaultConfigPath}`);
5858

5959
describe('VALID processFeatureIdentifier examples', async function () {
60-
this.timeout('4s');
60+
// These cases perform live OCI/GHCR requests, so allow extra time for
61+
// registry auth/token exchange and transient network latency in CI.
62+
this.timeout('20s');
6163

6264
it('should process v1 local-cache', async function () {
6365
// Parsed out of a user's devcontainer.json

0 commit comments

Comments
 (0)