Merge pull request #582 from fyrz/RocksJava-Fix-RateLimiter

[RocksJava] Fix RateLimiter Tests in 3.10
main
Igor Canadi 10 years ago
commit 6997aa0b6b
  1. 2
      java/src/test/java/org/rocksdb/DBOptionsTest.java
  2. 2
      java/src/test/java/org/rocksdb/OptionsTest.java

@ -555,7 +555,7 @@ public class DBOptionsTest {
try {
options = new DBOptions();
RateLimiterConfig rateLimiterConfig =
new GenericRateLimiterConfig(1000, 0, 1);
new GenericRateLimiterConfig(1000, 100 * 1000, 1);
options.setRateLimiterConfig(rateLimiterConfig);
// Test with parameter initialization
anotherOptions = new DBOptions();

@ -1130,7 +1130,7 @@ public class OptionsTest {
RateLimiterConfig rateLimiterConfig;
try {
options = new Options();
rateLimiterConfig = new GenericRateLimiterConfig(1000, 0, 1);
rateLimiterConfig = new GenericRateLimiterConfig(1000, 100 * 1000, 1);
options.setRateLimiterConfig(rateLimiterConfig);
// Test with parameter initialization
anotherOptions = new Options();

Loading…
Cancel
Save