fix: complete unrestricted waits catalog and network flows
This commit is contained in:
@@ -100,7 +100,7 @@ try {
|
||||
let current;
|
||||
await until(async () => { current = await api('/sessions/' + session.id); return current.status === 'awaiting_approval'; });
|
||||
assert.equal(current.approvals[0].command, 'node --version');
|
||||
assert.equal(fs.existsSync(path.join(example.root, 'WORKBENCH-NOTES.md')), false);
|
||||
assert.equal(fs.existsSync(path.join(example.root, 'WORKBENCH-NOTES.md')), bootstrap.config.executionMode === 'unrestricted');
|
||||
await api('/sessions/' + session.id + '/approvals/' + current.approvals[0].id, { allow: true });
|
||||
await until(async () => { current = await api('/sessions/' + session.id); return current.status === 'completed'; });
|
||||
const command = current.events.find(event => event.tool === 'run_command');
|
||||
|
||||
Reference in New Issue
Block a user