Merge pull request #17136 from hepin1989/fix-17315

#17135 replace substring with take to avoid Exception in non English evn
This commit is contained in:
Konrad Malawski 2015-04-03 15:35:15 +02:00
commit fb7c76736f

View file

@ -70,7 +70,7 @@ class TcpConnectionSpec extends AkkaSpec("""
clientSocket.write(ByteBuffer.allocate(1))
null
} catch {
case NonFatal(e) e.getMessage.substring(0, 15)
case NonFatal(e) e.getMessage.take(15)
}
}