Navigation Menu

Skip to content

Commit

Permalink
Minor changes to tests
Browse files Browse the repository at this point in the history
- 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 Jan 15, 2013
1 parent 1f3a466 commit 076229f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Expand Up @@ -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;
Expand Down
Expand Up @@ -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;
Expand Down
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/voldemort/utils/pool/KeyedResourcePoolTest.java
Expand Up @@ -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;
Expand Down
Expand Up @@ -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;
Expand Down

0 comments on commit 076229f

Please sign in to comment.