summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-13 20:11:32 +0800
committerKeuin <[email protected]>2021-01-13 20:11:32 +0800
commit3f4b20ad6f4bc0047e5b95fb4ada7f2c03e34f51 (patch)
tree89870ce9e2d5d0ede7e76a7253371feee8dbfb3c
parent5410762b8272feca0680f7a48f895714b91e3df7 (diff)
Fix test
-rw-r--r--src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java b/src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java
index 7e4f267..10b40f7 100644
--- a/src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java
+++ b/src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java
@@ -20,7 +20,7 @@ public class ConfiguredIncrementalBackupMethodTest {
private final String indexFileName = "index";
private final double directoryFactor = 0.4;
- private final double fileFactor = 0.1;
+ private final double fileFactor = 0.02;
private final int maxRandomFileSizeBytes = 1024 * 1024;
private final Function<Integer, Integer> scaleDecayFunc = (x) -> x - 1;
@@ -94,7 +94,7 @@ public class ConfiguredIncrementalBackupMethodTest {
for (int i = 0; i < subFileCount; i++) {
String subFile = null;
while (subFile == null || new File(path, subFile).exists())
- subFile = getRandomString((int) (Math.random() * 16 + 1));
+ subFile = getRandomString((int) (Math.random() * 16 + 4));
createRandomFile(new File(path, subFile), maxRandomFileSizeBytes);
}
@@ -103,7 +103,7 @@ public class ConfiguredIncrementalBackupMethodTest {
for (int i = 0; i < subDirCount; i++) {
String subDir = null;
while (subDir == null || new File(path, subDir).exists())
- subDir = getRandomString((int) (Math.random() * 16 + 1));
+ subDir = getRandomString((int) (Math.random() * 16 + 4));
createRandomDirectoryTree(new File(path, subDir).getAbsolutePath(), scaleDecayFunc.apply(scale));
}
}