Skip to content

Commit df7b30f

Browse files
committed
Turn off scanning after CW test suite
1 parent 0536f09 commit df7b30f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/src/test/codewhisperer/commands/basicCommands.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,12 @@ describe('CodeWhisperer-basicCommands', function () {
495495
sandbox.restore()
496496
})
497497

498+
after(async function () {
499+
// disable auto scan after testrun
500+
await CodeScansState.instance.setScansEnabled(false)
501+
assert.strictEqual(CodeScansState.instance.isScansEnabled(), false)
502+
})
503+
498504
it('should call applySecurityFix command successfully', async function () {
499505
const fileName = 'sample.py'
500506
const textDocumentMock = createMockDocument('first line\n second line\n fourth line', fileName)

0 commit comments

Comments
 (0)