Skip to content

Commit 8533cf8

Browse files
authored
perf(amazonq): Removing flaky test case in generateZipTestGen function (aws#6482)
## Problem - Github issue: aws#6160 (comment) ## Solution - Not able to reproduce this in local machine. Double checked with team and planned to disable this test for now to avoid hassle for partner teams. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent a41ca7a commit 8533cf8

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

packages/amazonq/test/unit/codewhisperer/util/zipUtil.test.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -195,22 +195,5 @@ describe('zipUtil', function () {
195195

196196
await assert.rejects(() => zipUtil.generateZipTestGen(appRoot, false), /Zip failed/)
197197
})
198-
199-
it('Should handle file copy to downloads folder error', async function () {
200-
// Mock LSP client
201-
sinon.stub(LspClient, 'instance').get(() => ({
202-
getRepoMapJSON: sinon.stub().resolves('{"mock": "data"}'),
203-
}))
204-
205-
const mkdirSpy = sinon.spy(fs, 'mkdir')
206-
sinon.stub(fs, 'exists').resolves(true)
207-
sinon.stub(fs, 'copy').rejects(new Error('Copy failed'))
208-
209-
await assert.rejects(() => zipUtil.generateZipTestGen(appRoot, false), /Copy failed/)
210-
211-
// Verify mkdir was called for all directories
212-
assert(mkdirSpy.called, 'mkdir should have been called')
213-
assert.strictEqual(mkdirSpy.callCount, 4, 'mkdir should have been called 4 times')
214-
})
215198
})
216199
})

0 commit comments

Comments
 (0)