Skip to content

Commit

Permalink
Error ACKs should trigger IOExceptions, so catch only those exception…
Browse files Browse the repository at this point in the history
…s in the test.
  • Loading branch information
JoshRosen committed Aug 6, 2014
1 parent b8bb4d4 commit 83673de
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,9 @@ class ConnectionManagerSuite extends FunSuite {

val future = manager.sendMessageReliably(managerServer.id, bufferMessage)

val message = Try(Await.result(future, 1 second))
assert(message.isFailure)
intercept[IOException] {
Await.result(future, 1 second)
}

manager.stop()
managerServer.stop()
Expand Down

0 comments on commit 83673de

Please sign in to comment.