File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1295,8 +1295,8 @@ def read(syntax = Net::LDAP::AsnSyntax)
12951295 # Returns the return value from writing to the connection, which in some
12961296 # cases is the Integer number of bytes written to the socket.
12971297 def write ( packet )
1298- instrument "write.net_ldap_connection" , :packet => packet do
1299- @conn . write ( packet )
1298+ instrument "write.net_ldap_connection" do | payload |
1299+ payload [ :content_length ] = @conn . write ( packet )
13001300 end
13011301 end
13021302 private :write
Original file line number Diff line number Diff line change 144144 # a write event
145145 payload , result = events . pop
146146 payload . should have_key ( :result )
147- payload . should have_key ( :packet )
147+ payload . should have_key ( :content_length )
148148 end
149149
150150 it "should publish a read.net_ldap_connection event" do
You can’t perform that action at this time.
0 commit comments