Rudimentary test cases for setIncreaseParallelism

This commit is contained in:
Adam Retter 2014-12-16 14:32:42 +00:00
parent eda0dcdd97
commit 17e84f2151
2 changed files with 28 additions and 0 deletions

View File

@ -73,6 +73,20 @@ public class DBOptionsTest {
new Properties());
}
@Test
public void setIncreaseParallelism() {
DBOptions opt = null;
try {
opt = new DBOptions();
final int threads = Runtime.getRuntime().availableProcessors() * 2;
opt.setIncreaseParallelism(threads);
} finally {
if (opt != null) {
opt.dispose();
}
}
}
@Test
public void createIfMissing() {
DBOptions opt = null;

View File

@ -22,6 +22,20 @@ public class OptionsTest {
public static final Random rand = PlatformRandomHelper.
getPlatformSpecificRandomFactory();
@Test
public void setIncreaseParallelism() {
Options opt = null;
try {
opt = new Options();
final int threads = Runtime.getRuntime().availableProcessors() * 2;
opt.setIncreaseParallelism(threads);
} finally {
if (opt != null) {
opt.dispose();
}
}
}
@Test
public void writeBufferSize() throws RocksDBException {
Options opt = null;