Tri: testing fix

+ 100000 update/deletes was to hard for travis free server reducinng the testing for 5000 operations
This commit is contained in:
romanman 2014-08-30 19:19:10 +03:00
parent e0d2199621
commit 45925d0791
2 changed files with 4 additions and 94996 deletions

View File

@ -573,7 +573,7 @@ public class TrieTest {
@Test @Test
public void testMasiveDetermenisticUpdate() throws IOException, URISyntaxException { public void testMasiveDetermenisticUpdate() throws IOException, URISyntaxException {
// should be root: 89bb4c4051774dd9039305bdad93b7fb61fcf2e6c0905d1acf2658b9c00b35c6 // should be root: cfd77c0fcb037adefce1f4e2eb94381456a4746379d2896bb8f309c620436d30
URL massiveUpload_1 = ClassLoader URL massiveUpload_1 = ClassLoader
.getSystemResource("trie/massive-upload.dmp"); .getSystemResource("trie/massive-upload.dmp");
@ -583,7 +583,7 @@ public class TrieTest {
// *** Part - 1 *** // *** Part - 1 ***
// 1. load the data from massive-upload.dmp // 1. load the data from massive-upload.dmp
// which includes deletes/upadtes (100000 operations) // which includes deletes/upadtes (5000 operations)
Trie trieSingle = new Trie(mockDb_2); Trie trieSingle = new Trie(mockDb_2);
for (int i = 0; i < strData.size() ; ++i){ for (int i = 0; i < strData.size() ; ++i){
@ -606,7 +606,7 @@ public class TrieTest {
// 3. the rest of the data loaded with part of the trie not in the cache // 3. the rest of the data loaded with part of the trie not in the cache
Trie trie = new Trie(mockDb); Trie trie = new Trie(mockDb);
for (int i = 0; i < 10000; ++i){ for (int i = 0; i < 2000; ++i){
String[] keyVal= strData.get(i).split("="); String[] keyVal= strData.get(i).split("=");
@ -621,7 +621,7 @@ public class TrieTest {
Trie trie2 = new Trie(mockDb, trie.getRootHash()); Trie trie2 = new Trie(mockDb, trie.getRootHash());
for (int i = 10000; i < strData.size(); ++i){ for (int i = 2000; i < strData.size(); ++i){
String[] keyVal= strData.get(i).split("="); String[] keyVal= strData.get(i).split("=");

File diff suppressed because it is too large Load Diff