Skip to content

Commit 83729bf

Browse files
test: fix 'crypto.getPassword is not a function'
1 parent 879fff3 commit 83729bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ const passwordLifeCycle = async (t, type, resource) => {
372372
const new_name = `renamed-${name}`;
373373

374374
await run(`${type} credential list --${type} ${resource.name}`);
375-
const secret = await crypto.getPassword();
375+
const secret = await crypto.randomPassword();
376376
await run(`${type} credential password add --name ${name} --password ${secret} --${type} ${resource.name}`);
377377
const list = await run(`${type} credential password list --${getOption(type)} ${resource.name}`);
378378
t.true(list.some(p => p.name === name));
@@ -471,7 +471,7 @@ const logStreamProcess = async (t, type, resource, trigger) => {
471471
await delay(2000); // allows wss connection to start
472472
const ids = [];
473473
for (let i = 0; i <= 10; i++) {
474-
const id_request = await crypto.getPassword();
474+
const id_request = await crypto.randomPassword();
475475
await trigger(id_request);
476476
ids.push(id_request);
477477
}

0 commit comments

Comments
 (0)