Permalink
Browse files

Minor changes to tests

- renamed base keyedresourcepool test to avoid pattern that ant/junit uses to try and run tests.
- tweaked stress tests parameters once more to make it easier to run locally.
  • Loading branch information...
jayjwylie committed Dec 3, 2012
1 parent 1f3a466 commit 076229fabc7c24f15c8a22d5fdbe0b35415deb72
@@ -312,12 +312,12 @@ public void stressTest() {
final int CONNECTIONS_PER_NODE_END = 20;
final int CONNECTIONS_PER_NODE_STEP = 5;
- final int NUM_PUTTERS_START = 100;
- final int NUM_PUTTERS_END = 100;
+ final int NUM_PUTTERS_START = 50;
+ final int NUM_PUTTERS_END = 50;
final int NUM_PUTTERS_STEP = 25;
- final int NUM_GETTERS_START = 100;
- final int NUM_GETTERS_END = 100;
+ final int NUM_GETTERS_START = 50;
+ final int NUM_GETTERS_END = 50;
final int NUM_GETTERS_STEP = 25;
final int NUM_OPS = 1000;
@@ -26,7 +26,7 @@
import org.junit.Before;
import org.junit.Test;
-public class KeyedResourcePoolContentionTest extends KeyedResourcePoolBaseTest {
+public class KeyedResourcePoolContentionTest extends KeyedResourcePoolTestBase {
protected static int POOL_SIZE = 5;
protected static long TIMEOUT_MS = 500;
@@ -30,7 +30,7 @@
import org.junit.Before;
import org.junit.Test;
-public class KeyedResourcePoolRaceTest extends KeyedResourcePoolBaseTest {
+public class KeyedResourcePoolRaceTest extends KeyedResourcePoolTestBase {
protected static final int POOL_SIZE = 100;
protected static final long TIMEOUT_MS = 500;
@@ -30,7 +30,7 @@
import voldemort.utils.Time;
-public class KeyedResourcePoolTest extends KeyedResourcePoolBaseTest {
+public class KeyedResourcePoolTest extends KeyedResourcePoolTestBase {
protected static int POOL_SIZE = 5;
protected static long TIMEOUT_MS = 500;
@@ -21,7 +21,7 @@
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
-public class KeyedResourcePoolBaseTest {
+public class KeyedResourcePoolTestBase {
protected TestResourceFactory factory;
protected KeyedResourcePool<String, TestResource> pool;

0 comments on commit 076229f

Please sign in to comment.