mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
Revert "server: tests: remove db cleanup workaround"
This reverts commit 365d82755f.
This commit is contained in:
@@ -49,7 +49,11 @@ const startFlood = () => {
|
||||
|
||||
const closeProcesses = () => {
|
||||
floodProcess.on('close', () => {
|
||||
fs.rmdirSync(temporaryRuntimeDirectory, {recursive: true});
|
||||
if (process.env.CI !== 'true') {
|
||||
// TODO: This leads to test flakiness caused by ENOENT error
|
||||
// NeDB provides no method to close database connection
|
||||
fs.rmdirSync(temporaryRuntimeDirectory, {recursive: true});
|
||||
}
|
||||
});
|
||||
|
||||
floodProcess.kill('SIGTERM');
|
||||
|
||||
Reference in New Issue
Block a user