mirror of https://github.com/facebook/rocksdb.git
Merge pull request #582 from fyrz/RocksJava-Fix-RateLimiter
[RocksJava] Fix RateLimiter Tests in 3.10
This commit is contained in:
commit
6997aa0b6b
|
@ -555,7 +555,7 @@ public class DBOptionsTest {
|
||||||
try {
|
try {
|
||||||
options = new DBOptions();
|
options = new DBOptions();
|
||||||
RateLimiterConfig rateLimiterConfig =
|
RateLimiterConfig rateLimiterConfig =
|
||||||
new GenericRateLimiterConfig(1000, 0, 1);
|
new GenericRateLimiterConfig(1000, 100 * 1000, 1);
|
||||||
options.setRateLimiterConfig(rateLimiterConfig);
|
options.setRateLimiterConfig(rateLimiterConfig);
|
||||||
// Test with parameter initialization
|
// Test with parameter initialization
|
||||||
anotherOptions = new DBOptions();
|
anotherOptions = new DBOptions();
|
||||||
|
|
|
@ -1130,7 +1130,7 @@ public class OptionsTest {
|
||||||
RateLimiterConfig rateLimiterConfig;
|
RateLimiterConfig rateLimiterConfig;
|
||||||
try {
|
try {
|
||||||
options = new Options();
|
options = new Options();
|
||||||
rateLimiterConfig = new GenericRateLimiterConfig(1000, 0, 1);
|
rateLimiterConfig = new GenericRateLimiterConfig(1000, 100 * 1000, 1);
|
||||||
options.setRateLimiterConfig(rateLimiterConfig);
|
options.setRateLimiterConfig(rateLimiterConfig);
|
||||||
// Test with parameter initialization
|
// Test with parameter initialization
|
||||||
anotherOptions = new Options();
|
anotherOptions = new Options();
|
||||||
|
|
Loading…
Reference in New Issue