8000 Fixed problem with test cases (maven) · githubcs/orientdb@02e2622 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02e2622

Browse files
committed
Fixed problem with test cases (maven)
1 parent 66ce6e0 commit 02e2622

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

core/src/test/java/com/orientechnologies/orient/core/index/hashindex/local/OLocalHashTableTest.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package com.orientechnologies.orient.core.index.hashindex.local;
22

3-
import java.io.IOException;
4-
import java.util.HashSet;
5-
import java.util.Set;
6-
3+
import com.orientechnologies.common.serialization.types.OIntegerSerializer;
4+
import com.orientechnologies.common.util.MersenneTwisterFast;
5+
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
6+
import com.orientechnologies.orient.core.metadata.schema.OType;
7+
import com.orientechnologies.orient.core.serialization.serializer.binary.OBinarySerializerFactory;
78
import com.orientechnologies.orient.core.storage.impl.local.OStorageLocalAbstract;
89
import org.testng.Assert;
910
import org.testng.annotations.AfterClass;
@@ -12,19 +13,17 @@
1213
import org.testng.annotations.BeforeMethod;
1314
import org.testng.annotations.Test;
1415

15-
import com.orientechnologies.common.serialization.types.OIntegerSerializer;
16-
import com.orientechnologies.common.util.MersenneTwisterFast;
17-
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
18-
import com.orientechnologies.orient.core.metadata.schema.OType;
19-
import com.orientechnologies.orient.core.serialization.serializer.binary.OBinarySerializerFactory;
16+
import java.io.IOException;
17+
import java.util.HashSet;
18+
import java.util.Set;
2019

2120
/**
2221
* @author Andrey Lomakin
2322
* @since 19.02.13
2423
*/
2524
@Test
2625
public class OLocalHashTableTest {
27-
private static final int KEYS_COUNT = 500000;
26+
private static final int KEYS_COUNT = 500000;
2827

2928
protected ODatabaseDocumentTx databaseDocumentTx;
3029

@@ -119,7 +118,9 @@ public void testKeyPutRandomGaussian() throws IOException {
119118

120119
public void testKeyDeleteRandomUniform() throws IOException {
121120
final Set<Integer> keys = new HashSet<Integer>();
122-
final MersenneTwisterFast random = new MersenneTwisterFast();
121+
long ms = System.currentTimeMillis();
122+
System.out.println("testKeyDeleteRandomUniform : " + ms);
123+
final MersenneTwisterFast random = new MersenneTwisterFast(ms);
123124

124125
while (keys.size() < KEYS_COUNT) {
125126
int key = random.nextInt();

0 commit comments

Comments
 (0)
0