Skip to content

Commit

Permalink
Add reset method to clean kafka memory between runs
Browse files Browse the repository at this point in the history
  • Loading branch information
sarcilav committed Mar 7, 2019
1 parent ab4f07b commit cea79cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/fake/kafka.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,11 @@ def consumer(*options)
def producer(*)
Producer.new(self)
end

# Used to clean test between runs
def reset
@messages = []
@paused_partitions = {}
end
end
end

0 comments on commit cea79cc

Please sign in to comment.