Skip to content

Commit

Permalink
Moved slow store to single-slow-store.xml. Previously it was breaking…
Browse files Browse the repository at this point in the history
… the existing tests
  • Loading branch information
Chinmay Soman committed Apr 26, 2013
1 parent e6e9e7e commit 06c4b3e
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 17 deletions.
19 changes: 19 additions & 0 deletions test/common/voldemort/config/single-slow-store.xml
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<stores>
<store>
<name>slow-store-test</name>
<persistence>slow</persistence>
<description>Test slow store</description>
<routing-strategy>consistent-routing</routing-strategy>
<routing>client</routing>
<replication-factor>1</replication-factor>
<required-reads>1</required-reads>
<required-writes>1</required-writes>
<key-serializer>
<type>string</type>
</key-serializer>
<value-serializer>
<type>string</type>
</value-serializer>
</store>
</stores>
16 changes: 0 additions & 16 deletions test/common/voldemort/config/single-store.xml
Expand Up @@ -18,20 +18,4 @@
<schema-info>UTF-8</schema-info>
</value-serializer>
</store>
<store>
<name>slow-store-test</name>
<persistence>slow</persistence>
<description>Test slow store</description>
<routing-strategy>consistent-routing</routing-strategy>
<routing>client</routing>
<replication-factor>1</replication-factor>
<required-reads>1</required-reads>
<required-writes>1</required-writes>
<key-serializer>
<type>string</type>
</key-serializer>
<value-serializer>
<type>string</type>
</value-serializer>
</store>
</stores>
16 changes: 16 additions & 0 deletions test/unit/voldemort/coordinator/CoordinatorRestAPITest.java
@@ -1,3 +1,19 @@
/*
* Copyright 2013 LinkedIn, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

package voldemort.coordinator;

import static org.junit.Assert.fail;
Expand Down
@@ -1,3 +1,19 @@
/*
* Copyright 2013 LinkedIn, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

package voldemort.coordinator;

import static org.junit.Assert.fail;
Expand Down Expand Up @@ -33,7 +49,7 @@ public class DynamicTimeoutStoreClientTest {
private Cluster cluster;
public static String socketUrl = "";
private static final String STORE_NAME = "slow-store-test";
private static final String STORES_XML = "test/common/voldemort/config/single-store.xml";
private static final String STORES_XML = "test/common/voldemort/config/single-slow-store.xml";
private static final String SLOW_STORE_DELAY = "500";
private final SocketStoreFactory socketStoreFactory = new ClientRequestExecutorPool(2,
10000,
Expand Down

0 comments on commit 06c4b3e

Please sign in to comment.