gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject gora git commit: Fixing Usage of DataOutputStream
Date Fri, 05 Feb 2016 06:37:03 GMT
Repository: gora
Updated Branches:
  refs/heads/master 4968823b5 -> 4f98503c0


Fixing Usage of DataOutputStream


Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/4f98503c
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/4f98503c
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/4f98503c

Branch: refs/heads/master
Commit: 4f98503c014c359b6ab018f43920d454b0344160
Parents: 4968823
Author: emopers <emopers@gmail.com>
Authored: Thu Feb 4 01:20:31 2016 -0600
Committer: Wajihulhassan <wajih.lums@gmail.com>
Committed: Fri Feb 5 00:20:32 2016 -0600

----------------------------------------------------------------------
 .../src/test/java/org/apache/gora/accumulo/store/PartitionTest.java | 1 +
 gora-core/src/test/java/org/apache/gora/util/TestWritableUtils.java | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/4f98503c/gora-accumulo/src/test/java/org/apache/gora/accumulo/store/PartitionTest.java
----------------------------------------------------------------------
diff --git a/gora-accumulo/src/test/java/org/apache/gora/accumulo/store/PartitionTest.java
b/gora-accumulo/src/test/java/org/apache/gora/accumulo/store/PartitionTest.java
index 3fcc04d..b1ffd67 100644
--- a/gora-accumulo/src/test/java/org/apache/gora/accumulo/store/PartitionTest.java
+++ b/gora-accumulo/src/test/java/org/apache/gora/accumulo/store/PartitionTest.java
@@ -39,6 +39,7 @@ public class PartitionTest {
     DataOutputStream dos = new DataOutputStream(baos);
     try {
       dos.writeLong(l);
+      dos.flush();
     } catch (IOException e) {
       throw new RuntimeException(e);
     }

http://git-wip-us.apache.org/repos/asf/gora/blob/4f98503c/gora-core/src/test/java/org/apache/gora/util/TestWritableUtils.java
----------------------------------------------------------------------
diff --git a/gora-core/src/test/java/org/apache/gora/util/TestWritableUtils.java b/gora-core/src/test/java/org/apache/gora/util/TestWritableUtils.java
index 59fe105..7b84aa9 100644
--- a/gora-core/src/test/java/org/apache/gora/util/TestWritableUtils.java
+++ b/gora-core/src/test/java/org/apache/gora/util/TestWritableUtils.java
@@ -44,6 +44,7 @@ public class TestWritableUtils {
     ByteArrayOutputStream bos = new ByteArrayOutputStream();
     DataOutput out = new DataOutputStream(bos);
     WritableUtils.writeProperties(out, props);
+    ((DataOutputStream)out).flush();
     
     DataInput in = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
     


Mime
View raw message