Skip to content

Commit 5f304a7

Browse files
committed
Loosen stub in a spec
1 parent d57e23a commit 5f304a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rdkafka/producer/client_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242

4343
it "polls the native with default 250ms timeout" do
4444
polling_loop_expects do
45-
expect(Rdkafka::Bindings).to receive(:rd_kafka_poll).with(instance_of(FFI::Pointer), 250)
45+
expect(Rdkafka::Bindings).to receive(:rd_kafka_poll).with(instance_of(FFI::Pointer), 250).at_least(:once)
4646
end
4747
end
4848

4949
it "check the out queue of native client" do
5050
polling_loop_expects do
51-
expect(Rdkafka::Bindings).to receive(:rd_kafka_outq_len).with(native)
51+
expect(Rdkafka::Bindings).to receive(:rd_kafka_outq_len).with(native).at_least(:once)
5252
end
5353
end
5454
end

0 commit comments

Comments
 (0)