1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-23 03:36:58 +00:00

Fix swap job leak in tests

This commit is contained in:
Michael Walker 2018-03-09 10:53:10 +00:00
parent 86f60519a1
commit b5e7327410

View file

@ -1,6 +1,7 @@
package uk.ac.ic.wlgitbridge.bridge.swap.job;
import org.apache.commons.io.FileUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
@ -74,6 +75,13 @@ public class SwapJobImplTest {
);
}
@After
public void teardown() {
if(swapJob != null) {
swapJob.stop();
}
}
@Test
public void startingTimerAlwaysCausesASwap() {
swapJob.lowWatermarkBytes = 16384;