From a4ad374ea41c44cc05413dd4e56998200bbe08a5 Mon Sep 17 00:00:00 2001 From: Will Lo Date: Thu, 21 Nov 2024 15:07:17 -0800 Subject: [PATCH 1/2] skip flaky crossfileContextUtil.test --- .../test/unit/codewhisperer/util/crossFileContextUtil.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts b/packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts index 372aa566396..04811b7db03 100644 --- a/packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts +++ b/packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts @@ -35,7 +35,7 @@ describe('crossFileContextUtil', function () { sinon.restore() }) - describe('fetchSupplementalContextForSrc', function () { + describe.skip('fetchSupplementalContextForSrc', function () { beforeEach(async function () { tempFolder = (await createTestWorkspaceFolder()).uri.fsPath }) From 1e2a29e2d8c1503eb49f630214e9907a41fc5be8 Mon Sep 17 00:00:00 2001 From: Will Lo Date: Thu, 21 Nov 2024 15:37:45 -0800 Subject: [PATCH 2/2] patch --- .../test/unit/codewhisperer/util/crossFileContextUtil.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts b/packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts index 04811b7db03..748483a4dc0 100644 --- a/packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts +++ b/packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts @@ -35,7 +35,7 @@ describe('crossFileContextUtil', function () { sinon.restore() }) - describe.skip('fetchSupplementalContextForSrc', function () { + describe('fetchSupplementalContextForSrc', function () { beforeEach(async function () { tempFolder = (await createTestWorkspaceFolder()).uri.fsPath }) @@ -61,7 +61,7 @@ describe('crossFileContextUtil', function () { assert.strictEqual(actual.supplementalContextItems[2].content.split('\n').length, 50) }) - it('for t1 group, should return repomap + opentabs context', async function () { + it.skip('for t1 group, should return repomap + opentabs context', async function () { await toTextEditor(aStringWithLineCount(200), 'CrossFile.java', tempFolder, { preview: false }) const myCurrentEditor = await toTextEditor('', 'TargetFile.java', tempFolder, { preview: false,