incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Fixed test.
Date Wed, 18 Mar 2015 02:48:21 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master e965e329d -> 724b2344a


Fixed test.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/724b2344
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/724b2344
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/724b2344

Branch: refs/heads/master
Commit: 724b2344ab9e0ca005411ad14911f71d99a5c73f
Parents: e965e32
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Tue Mar 17 22:48:18 2015 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Tue Mar 17 22:48:18 2015 -0400

----------------------------------------------------------------------
 .../apache/blur/store/blockcache_v2/CacheIndexOutputTest.java  | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/724b2344/blur-store/src/test/java/org/apache/blur/store/blockcache_v2/CacheIndexOutputTest.java
----------------------------------------------------------------------
diff --git a/blur-store/src/test/java/org/apache/blur/store/blockcache_v2/CacheIndexOutputTest.java
b/blur-store/src/test/java/org/apache/blur/store/blockcache_v2/CacheIndexOutputTest.java
index e470d40..1bf062d 100644
--- a/blur-store/src/test/java/org/apache/blur/store/blockcache_v2/CacheIndexOutputTest.java
+++ b/blur-store/src/test/java/org/apache/blur/store/blockcache_v2/CacheIndexOutputTest.java
@@ -52,10 +52,9 @@ public class CacheIndexOutputTest {
   public void test1() throws IOException {
     Random random = new Random(seed);
     RAMDirectory directory = new RAMDirectory();
-    IndexOutput output = directory.createOutput("test", IOContext.DEFAULT);
 
     Cache cache = CacheIndexInputTest.getCache();
-    CacheIndexOutput indexOutput = new CacheIndexOutput(null, "test", output, cache);
+    CacheIndexOutput indexOutput = new CacheIndexOutput(null, "test", cache, directory, IOContext.DEFAULT);
     indexOutput.writeByte((byte) 1);
     indexOutput.writeByte((byte) 2);
     byte[] b = new byte[16000];
@@ -87,8 +86,7 @@ public class CacheIndexOutputTest {
     long size = (10 * 1024 * 1024) + 13;
 
     IndexOutput output = directory.createOutput(name, IOContext.DEFAULT);
-    IndexOutput output2 = directory2.createOutput(name, IOContext.DEFAULT);
-    CacheIndexOutput cacheIndexOutput = new CacheIndexOutput(null, name, output2, cache);
+    CacheIndexOutput cacheIndexOutput = new CacheIndexOutput(null, name, cache, directory2,
IOContext.DEFAULT);
     CacheIndexInputTest.writeRandomData(size, random, output, cacheIndexOutput);
     output.close();
     cacheIndexOutput.close();


Mime
View raw message