fix: execution too fast causes 'socket hang up'

This commit is contained in:
tiddlygit-test 2021-04-23 00:54:15 +08:00
parent e43e4a7f16
commit d3dfb7ef78
2 changed files with 17 additions and 15 deletions

View file

@ -7,6 +7,7 @@ import { TiddlyGitWorld } from '../supports/world';
setWorldConstructor(TiddlyGitWorld);
Given('the app is launched', async function (this: TiddlyGitWorld) {
await delay(100);
await this.start();
const windowCount = await this.app?.client?.getWindowCount();
expect(windowCount).equal(1);