Skip to content

Commit

Permalink
delay output for test purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianrath committed Jun 20, 2021
1 parent b6fa9e2 commit 853a8e4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/5.repo.commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,17 @@ async function repoTest(t, commondirInside: boolean) {

return osWalk(repo.workdir(), OSWALK.DIRS | OSWALK.FILES | OSWALK.HIDDEN | OSWALK.BROWSE_REPOS);
})
.then((dirItems: DirItem[]) => {
.then(async (dirItems: DirItem[]) => {
if (commondirInside) {
t.is(dirItems.length, 24, 'expect 24 items');
console.log(dirItems.length);
console.log(dirItems);
await new Promise<void>((resolve) => {
setTimeout(() => {
resolve();
}, 1000);
});
console.log(dirItems.length);
} else {
t.is(dirItems.length, 4, 'expect 3 items (foo + subdir + subdir/bar + .snow)');
}
Expand Down

0 comments on commit 853a8e4

Please sign in to comment.