ソースを参照

ZOOKEEPER-867. ClientTest is failing on hudson - fd cleanup

git-svn-id: https://svn.apache.org/repos/asf/hadoop/zookeeper/trunk@995178 13f79535-47bb-0310-9956-ffa450edef68
Patrick D. Hunt 15 年 前
コミット
0850cf2fdf
2 ファイル変更7 行追加2 行削除
  1. 2 0
      CHANGES.txt
  2. 5 2
      src/java/test/org/apache/zookeeper/test/ClientTest.java

+ 2 - 0
CHANGES.txt

@@ -86,6 +86,8 @@ BUGFIXES:
   ZOOKEEPER-861. Missing the test SSL certificate used for running junit tests.
   (erwin tam via mahadev)
 
+  ZOOKEEPER-867. ClientTest is failing on hudson - fd cleanup (phunt)
+
 
 IMPROVEMENTS:
   ZOOKEEPER-724. Improve junit test integration - log harness information 

+ 5 - 2
src/java/test/org/apache/zookeeper/test/ClientTest.java

@@ -726,7 +726,10 @@ public class ClientTest extends ClientBase {
 
         // if this Assert.fails it means we are not cleaning up after the closed
         // sessions.
-        Assert.assertTrue("open fds after test are not significantly higher than before",
-                unixos.getOpenFileDescriptorCount() <= initialFdCount + 10);
+        long currentCount = unixos.getOpenFileDescriptorCount();
+        Assert.assertTrue("open fds after test (" + currentCount 
+                + ") are not significantly higher than before ("
+                + initialFdCount + ")",
+                currentCount <= initialFdCount + 10);
     }
 }