Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Parker2014-10-07 19:28:03 -0400
committerMiles Parker2014-10-07 19:28:03 -0400
commitdbdd93c8144c4016d81cb245226545c2252c8939 (patch)
treea3b7d5293f9435a689c705ae8a8d4a86dbcb7da5
parent41942a1269851bf83af335ecce37711e7526c724 (diff)
downloadorg.eclipse.mylyn.tasks-dbdd93c8144c4016d81cb245226545c2252c8939.tar.gz
org.eclipse.mylyn.tasks-dbdd93c8144c4016d81cb245226545c2252c8939.tar.xz
org.eclipse.mylyn.tasks-dbdd93c8144c4016d81cb245226545c2252c8939.zip
437298: Eliminate non-determinism in TaskListIndexCorruptTest
* TaskListIndexCorruptTest was implemented using a random number seeded with current time in millis which makes tests non-repeatable. Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=437298 Change-Id: I77355bfeff7b9e6705efce75325f42ec3a0cea72 Signed-off-by: Miles Parker <milesparker@gmail.com>
-rw-r--r--org.eclipse.mylyn.tasks.index.tests/src/org/eclipse/mylyn/internal/tasks/index/tests/TaskListIndexCorruptTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.index.tests/src/org/eclipse/mylyn/internal/tasks/index/tests/TaskListIndexCorruptTest.java b/org.eclipse.mylyn.tasks.index.tests/src/org/eclipse/mylyn/internal/tasks/index/tests/TaskListIndexCorruptTest.java
index 96c6c961d..58c12ad8f 100644
--- a/org.eclipse.mylyn.tasks.index.tests/src/org/eclipse/mylyn/internal/tasks/index/tests/TaskListIndexCorruptTest.java
+++ b/org.eclipse.mylyn.tasks.index.tests/src/org/eclipse/mylyn/internal/tasks/index/tests/TaskListIndexCorruptTest.java
@@ -48,7 +48,7 @@ public class TaskListIndexCorruptTest extends AbstractTaskListIndexTest {
}
private void corruptFile(File file) throws IOException {
- Random random = new Random(System.currentTimeMillis());
+ Random random = new Random(123);
long length = file.length();
OutputStream stream = new FileOutputStream(file);
try {

Back to the top