Skip to content

Commit

Permalink
Fix coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Nov 20, 2024
1 parent 46bee0d commit b538ad0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/dpul_collections/index_metrics_tracker_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ defmodule DpulCollections.IndexMetricsTrackerTest do
describe "index_times/1" do
test "registers index times" do
# Act
# Send an ack done with acked_count 1, before anything - this should be
# ignored
:telemetry.execute(
[:database_producer, :ack, :done],
%{},
%{
acked_count: 1,
unacked_count: 0,
processor_marker_key: HydrationProducerSource.processor_marker_key()
}
)

IndexMetricsTracker.register_fresh_index(HydrationProducerSource)
# Send an ack done with acked_count 1
:telemetry.execute(
Expand Down

0 comments on commit b538ad0

Please sign in to comment.