Skip to content

Commit

Permalink
Fix testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
k32 committed Jun 22, 2020
1 parent 20deaac commit fa8b3db
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/brod_test_group_subscriber.erl
Expand Up @@ -27,7 +27,7 @@
, get_committed_offset/3
, handle_message/2
, assign_partitions/3
, terminate/1
, terminate/2
]).

init(InitInfo, Config) ->
Expand Down Expand Up @@ -76,10 +76,11 @@ assign_partitions(_CbConfig, Members, TopicPartitions) ->
|| {Topic, PartitionsN} <- TopicPartitions],
[{element(1, hd(Members)), PartitionsAssignments}].

terminate(#state{ topic = Topic
, partition = Partition
}) ->
terminate(Reason, #state{ topic = Topic
, partition = Partition
}) ->
?tp(brod_test_group_subscriber_terminate,
#{ topic => Topic
#{ topic => Topic
, partition => Partition
, readon => Reason
}).

0 comments on commit fa8b3db

Please sign in to comment.