Fix act() warnings on newly created plugin test run

This commit is contained in:
Fredrik Adelöw
2020-03-23 08:47:12 +01:00
parent 58b2b97cfa
commit 9d977ccb9c
5 changed files with 11 additions and 4 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ async function main() {
const createPlugin = spawnPiped(['yarn', 'create-plugin']);
createPlugin.stdin.write('test-plugin\n');
await new Promise(resolve => setTimeout(resolve, 2000));
// TODO: Add code to await the right prompts from create-plugin stdout instead
await new Promise(resolve => setTimeout(resolve, 5000));
createPlugin.stdin.write('@someuser\n');
print('Waiting for plugin create script to be done');