Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/carbon/tests/test_aggregator_buffers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from carbon import instrumentation
from carbon.aggregator.buffers import BufferManager, IntervalBuffer, MetricBuffer
from carbon.tests.util import TestSettings
import carbon.service # creates carbon.state.events


class AggregationBufferManagerTest(TestCase):
Expand Down Expand Up @@ -201,7 +202,7 @@ def test_compute_value_deletes_too_many_buffers(self, metric_generated_mock):
interval_buffer = IntervalBuffer(interval)
interval_buffer.input((interval, 1.0))
self.metric_buffer.interval_buffers[interval] = interval_buffer
calls = [call("carbon.foo.bar", (interval, 1.0))]
calls.append(call("carbon.foo.bar", (interval, 1.0)))

with patch("time.time", new=Mock(return_value=600)):
self.metric_buffer.compute_value()
Expand Down
Loading