Skip to content

Commit a1154df

Browse files
committed
fix unit test coverage
1 parent d2bbcb6 commit a1154df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_otlp_udp_exporter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def test_export_with_exception(self, mock_udp_exporter, mock_encode_metrics):
9292
def test_shutdown(self, mock_udp_exporter):
9393
mock_udp_exporter_instance = mock_udp_exporter.return_value
9494
exporter = OTLPUdpMetricExporter()
95+
exporter.force_flush()
9596
exporter.shutdown()
9697
mock_udp_exporter_instance.shutdown.assert_called_once()
9798

@@ -141,4 +142,5 @@ def test_shutdown(self, mock_udp_exporter):
141142
mock_udp_exporter_instance = mock_udp_exporter.return_value
142143
exporter = OTLPUdpSpanExporter()
143144
exporter.shutdown()
145+
exporter.force_flush()
144146
mock_udp_exporter_instance.shutdown.assert_called_once()

0 commit comments

Comments
 (0)