1
0
Fork 0

Relax the timeout for the db to be gone and give the garbage collection more time in one run.

This commit is contained in:
Willi Goesgens 2015-03-06 09:37:19 +01:00
parent 73086d9176
commit a6e736dedc
1 changed files with 5 additions and 3 deletions

View File

@ -186,13 +186,15 @@ function DatabaseSuite () {
assertTrue(internal.db._dropDatabase("UnitTestsDatabase0"));
var tries = 0;
while (tries++ < 15) {
while (tries++ < 150) {
if (fs.exists(path)) {
internal.wait(1);
internal.wait(2);
continue;
}
}
if (tries > 15) {
require("internal").printf("[WARNING] waited " + tries * 2 +" seconds for " + path + " do disappear");
}
assertFalse(fs.exists(path));
}