Skip to content

Commit 100f742

Browse files
authored
Merge branch 'main' into db-fix
2 parents 2699f5d + 5d24d9d commit 100f742

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/testClearBareClone.test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,18 @@ describe('clear bare and local clones', async () => {
2525
);
2626

2727
expect(fs.existsSync(`./.remote/${timestamp}`)).to.be.true;
28-
}).timeout(10000);
28+
}).timeout(20000);
2929

3030
it('clear bare clone function purges .remote folder and specific clone folder', async () => {
3131
const action = new Action('123', 'type', 'get', timestamp, 'finos/git-proxy');
3232
await clearBareClone(null, action);
3333
expect(fs.existsSync(`./.remote`)).to.throw;
3434
expect(fs.existsSync(`./.remote/${timestamp}`)).to.throw;
3535
});
36+
37+
afterEach(() => {
38+
if (fs.existsSync(`./.remote`)) {
39+
fs.rmdirSync(`./.remote`, { recursive: true });
40+
}
41+
})
3642
});

0 commit comments

Comments
 (0)