kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkr...@apache.org
Subject svn commit: r1396178 - /incubator/kafka/branches/0.8/core/src/test/scala/unit/kafka/message/MessageCompressionTest.scala
Date Tue, 09 Oct 2012 18:37:51 GMT
Author: jkreps
Date: Tue Oct  9 18:37:51 2012
New Revision: 1396178

URL: http://svn.apache.org/viewvc?rev=1396178&view=rev
Log:
KAFKA-504 Catching the wrong exception in the test for snappy compression, added check for
SnappyException too. Trivial fix, no review.


Modified:
    incubator/kafka/branches/0.8/core/src/test/scala/unit/kafka/message/MessageCompressionTest.scala

Modified: incubator/kafka/branches/0.8/core/src/test/scala/unit/kafka/message/MessageCompressionTest.scala
URL: http://svn.apache.org/viewvc/incubator/kafka/branches/0.8/core/src/test/scala/unit/kafka/message/MessageCompressionTest.scala?rev=1396178&r1=1396177&r2=1396178&view=diff
==============================================================================
--- incubator/kafka/branches/0.8/core/src/test/scala/unit/kafka/message/MessageCompressionTest.scala
(original)
+++ incubator/kafka/branches/0.8/core/src/test/scala/unit/kafka/message/MessageCompressionTest.scala
Tue Oct  9 18:37:51 2012
@@ -60,6 +60,7 @@ class MessageCompressionTest extends JUn
       true
     } catch {
       case e: UnsatisfiedLinkError => false
+      case e: org.xerial.snappy.SnappyError => false
     }
   }
 }



Mime
View raw message