kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkr...@apache.org
Subject svn commit: r1178553 - /incubator/kafka/trunk/core/src/test/scala/unit/kafka/network/SocketServerTest.scala
Date Mon, 03 Oct 2011 20:11:36 GMT
Author: jkreps
Date: Mon Oct  3 20:11:36 2011
New Revision: 1178553

URL: http://svn.apache.org/viewvc?rev=1178553&view=rev
Log:
KAFKA-125 On Linux, the test can throw SocketException instead of EOFException, that is cool
too.


Modified:
    incubator/kafka/trunk/core/src/test/scala/unit/kafka/network/SocketServerTest.scala

Modified: incubator/kafka/trunk/core/src/test/scala/unit/kafka/network/SocketServerTest.scala
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/core/src/test/scala/unit/kafka/network/SocketServerTest.scala?rev=1178553&r1=1178552&r2=1178553&view=diff
==============================================================================
--- incubator/kafka/trunk/core/src/test/scala/unit/kafka/network/SocketServerTest.scala (original)
+++ incubator/kafka/trunk/core/src/test/scala/unit/kafka/network/SocketServerTest.scala Mon
Oct  3 20:11:36 2011
@@ -71,11 +71,11 @@ class SocketServerTest extends JUnitSuit
     
   }
 
-  @Test(expected=classOf[EOFException])
+  @Test(expected=classOf[IOException])
   def tooBigRequestIsRejected() {
     val tooManyBytes = new Array[Byte](server.maxRequestSize + 1)
     new Random().nextBytes(tooManyBytes)
     sendRequest(0, tooManyBytes)
   }
 
-}
\ No newline at end of file
+}



Mime
View raw message