Skip to content

Commit

Permalink
6
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Oct 1, 2023
1 parent def725b commit ca35aad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/live/iam-lambda-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ test('Get Lambda role', async t => {

try {
role = await aws.iam.GetRole({ name: roleName })
// TODO ↓ remove me! ↓
console.log(`got role:`, role)
}
catch { /* noop */ }

if (!role) {
// TODO ↓ remove me! ↓
console.log(`no role found!`)
role = await aws.iam.CreateRole({
name: roleName,
desc: 'aws-lite test Lambda role: please do not delete!',
Expand All @@ -45,6 +49,8 @@ test('Get Lambda role', async t => {
}),
path: '/',
})
// TODO ↓ remove me! ↓
console.log(`role??`, role)
// Give it a few seconds for the role to be ready for a new Lambda
await new Promise((resolve) => setTimeout(resolve, 5000))
}
Expand Down

0 comments on commit ca35aad

Please sign in to comment.