File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -116,17 +116,17 @@ def call(report)
116116 end
117117
118118 it "should provide handle" do
119- callback_handle = [ ]
119+ callback_handles = [ ]
120120 callback = Class . new do
121- def initialize ( callback_handle )
122- @callback_handle = callback_handle
121+ def initialize ( callback_handles )
122+ @callback_handles = callback_handles
123123 end
124124
125125 def call ( _ , handle )
126- @callback_handle << handle
126+ @callback_handles << handle
127127 end
128128 end
129- producer . delivery_callback = callback . new ( callback_handle )
129+ producer . delivery_callback = callback . new ( callback_handles )
130130
131131 # Produce a message
132132 handle = producer . produce (
@@ -142,7 +142,7 @@ def call(_, handle)
142142 producer . close
143143
144144 # Callback should have been called
145- expect ( handle ) . to be callback_handle . first
145+ expect ( handle ) . to be callback_handles . first
146146 end
147147 end
148148
You can’t perform that action at this time.
0 commit comments