We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd93c9 commit 1681f5cCopy full SHA for 1681f5c
exporter/opentelemetry-exporter-otlp-proto-common/tests/test_retryable_exporter.py
@@ -39,10 +39,11 @@ def test_export_no_retry(self):
39
export_func.reset_mock()
40
export_func.configure_mock(return_value=result_type.FAILURE)
41
pos_arg = Mock()
42
- with self.assertNoLogs(exporter_logger, level=WARNING):
43
- result = exporter.export_with_retry(
44
- _DEFAULT_EXPORT_TIMEOUT_S, pos_arg, foo="bar"
45
- )
+ with self.assertRaises(AssertionError):
+ with self.assertLogs(exporter_logger, level=WARNING):
+ result = exporter.export_with_retry(
+ _DEFAULT_EXPORT_TIMEOUT_S, pos_arg, foo="bar"
46
+ )
47
self.assertIs(result, result_type.FAILURE)
48
export_func.assert_called_once_with(ANY, pos_arg, foo="bar")
49
0 commit comments