Commit 1788832e authored by Andre Freyssinet's avatar Andre Freyssinet

Avoids divide by zero exception if init and close run in the same millisecond.

parent bb4518d6
......@@ -58,14 +58,17 @@ public class CreateTest {
transaction.commit(true);
transaction.garbage(0);
// Waits to avoid a divide by zero in close if init and close run in the same millisecond.
Thread.sleep(1);
transaction.close();
transaction.init(logpath);
bytes = transaction.loadByteArray(name);
Assert.assertNull(bytes);
// Waits to avoid a divide by zero in close if init and close run in the same millisecond.
Thread.sleep(1);
transaction.close();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment