mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix swap job leak in tests
This commit is contained in:
parent
86f60519a1
commit
b5e7327410
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue