@@ -172,7 +172,7 @@ local function list_groups(timeout_ms)
172
172
log .info (" Groups: %s" , json .encode (res ))
173
173
-- Some fields can have binary data that won't
174
174
-- be correctly processed by connector.
175
- for _ , group in ipairs (res ) do
175
+ for _ , group in ipairs (res ) do
176
176
group [' members' ] = nil
177
177
end
178
178
return res
@@ -204,6 +204,9 @@ local function test_seek_partitions()
204
204
205
205
for _ = 1 , 5 do
206
206
local msg = out :get (3 )
207
+ if msg == nil then
208
+ error (' Message is not delivered' )
209
+ end
207
210
log .info (' Get message: %s' , json .encode (msg_totable (msg )))
208
211
append_message (messages , msg )
209
212
consumer :seek_partitions ({
@@ -214,6 +217,10 @@ local function test_seek_partitions()
214
217
return messages
215
218
end
216
219
220
+ local function rebalance_protocol ()
221
+ return consumer :rebalance_protocol ()
222
+ end
223
+
217
224
local function test_create_errors ()
218
225
log .info (' Create without config' )
219
226
local _ , err = tnt_kafka .Consumer .create ()
@@ -263,6 +270,7 @@ return {
263
270
list_groups = list_groups ,
264
271
pause = pause ,
265
272
resume = resume ,
273
+ rebalance_protocol = rebalance_protocol ,
266
274
267
275
test_seek_partitions = test_seek_partitions ,
268
276
test_create_errors = test_create_errors ,
0 commit comments