Tcp: cosmetic changes and more checks

* whitespace
 * Write.Empty => Write.empty
 * check requirements
 * better 0-checks
This commit is contained in:
Johannes Rudolph 2013-04-10 14:56:51 +02:00
parent 15545641a6
commit c5d90a1c57
3 changed files with 26 additions and 9 deletions

View file

@ -258,8 +258,8 @@ class TcpConnectionSpec extends AkkaSpec("akka.io.tcp.register-timeout = 500ms")
writer.expectMsg(CommandFailed(secondWrite))
// reject even empty writes
writer.send(connectionActor, Write.Empty)
writer.expectMsg(CommandFailed(Write.Empty))
writer.send(connectionActor, Write.empty)
writer.expectMsg(CommandFailed(Write.empty))
// there will be immediately more space in the send buffer because
// some data will have been sent by now, so we assume we can write