Skip to content

Commit 1b4dd70

Browse files
vijaykanthmiennae
authored andcommitted
pick the first asset as random
1 parent 48a0611 commit 1b4dd70

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

security-center/snippets/system-test/v2/assetSecurityMarks.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ describe('client with security marks for assets', async () => {
3131
const [assetResults] = await client.listAssets({
3232
parent: client.organizationPath(organizationId),
3333
});
34-
const randomAsset =
35-
assetResults[Math.floor(Math.random() * assetResults.length)].asset;
34+
const randomAsset = assetResults[0].asset;
3635
console.log('random %j', randomAsset);
3736
data = {
3837
orgId: organizationId,

0 commit comments

Comments
 (0)