File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/async/container/notify Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def send(**message)
6060 data = dump ( message )
6161
6262 if data . bytesize > MAXIMUM_MESSAGE_SIZE
63- raise ArgumentError , "Message length #{ message . bytesize } exceeds #{ MAXIMUM_MESSAGE_SIZE } : #{ message . inspect } "
63+ raise ArgumentError , "Message length #{ data . bytesize } exceeds #{ MAXIMUM_MESSAGE_SIZE } : #{ message . inspect } "
6464 end
6565
6666 @address . connect do |peer |
Original file line number Diff line number Diff line change 6666 context = server . bind
6767
6868 expect do
69- client . send ( "x" * ( subject ::Socket ::MAXIMUM_MESSAGE_SIZE +1 ) )
70- end . to raise_exception ( ArgumentError )
69+ client . send ( test : "x" * ( subject ::Socket ::MAXIMUM_MESSAGE_SIZE +1 ) )
70+ end . to raise_exception ( ArgumentError , message : be =~ /Message length \d + exceeds \d +/ )
7171 end
7272 end
7373
You can’t perform that action at this time.
0 commit comments