helper.edit: wait up to 10 seconds for ACCEPT_COMMIT

This commit is contained in:
webzwo0i 2021-07-07 01:39:22 +02:00 committed by Richard Hansen
parent b282de0c42
commit 1ba2f72db7

View file

@ -37,7 +37,7 @@ helper.edit = async (message, line) => {
await helper.withFastCommit(async (incorp) => {
helper.linesDiv()[line].sendkeys(message);
incorp();
await helper.waitForPromise(() => editsNum + 1 === helper.commits.length);
await helper.waitForPromise(() => editsNum + 1 === helper.commits.length, 10000);
});
};