Skip to content

Commit 09a0db7

Browse files
authored
test(policychecks): remove flaky executeCommand check #6009
## Problem Flaky tests: #5996 ## Solution The check for executeCommand is not important to these tests, and can be removed. fix #5996
1 parent 226636f commit 09a0db7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/core/src/test/awsService/accessanalyzer/iamPolicyChecks.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ describe('customChecks', function () {
369369
assert.deepStrictEqual(actualCommand.referencePolicyType, policyType)
370370

371371
assert(onCustomPolicyCheckResponseFireSpy.notCalled)
372-
assert(executeCommandStub.notCalled)
373372
})
374373

375374
it('checkNoNewAccess should handle CloudFormation document type correctly', async function () {
@@ -400,7 +399,6 @@ describe('customChecks', function () {
400399
assert.deepStrictEqual(actualCommand.referencePolicyType, policyType)
401400

402401
assert(onCustomPolicyCheckResponseFireSpy.notCalled)
403-
assert(executeCommandStub.notCalled)
404402
})
405403

406404
it('checkNoNewAccess should handle missing reference document', async function () {

0 commit comments

Comments
 (0)