Tcp: cosmetic changes and more checks
* whitespace * Write.Empty => Write.empty * check requirements * better 0-checks
This commit is contained in:
parent
15545641a6
commit
c5d90a1c57
3 changed files with 26 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue