The following test is failing intermittently on MacOS:
|
it 'reports export failures' do |
|
# This test is unreliable on Windows platforms, but works just fine on others |
|
skip if Gem.win_platform? |
|
|
|
# skip the work method's behavior, we rely on shutdown to get us to the failures |
|
processor.stub(:work, nil) do |
|
mock_logger = Minitest::Mock.new |
|
mock_logger.expect(:error, nil, [/Unable to export/]) |
|
mock_logger.expect(:error, nil, [/Result code: 1/]) |
|
mock_logger.expect(:error, nil, [/unexpected error in .*\#export_batch/]) |
|
|
|
OpenTelemetry.stub(:logger, mock_logger) do |
|
log_records = [TestLogRecord.new, TestLogRecord.new, TestLogRecord.new, TestLogRecord.new] |
|
log_records.each { |log_record| processor.on_emit(log_record, mock_context) } |
|
processor.shutdown |
|
end |
|
|
|
mock_logger.verify |
|
end |
|
end |
Previously, it was disabled for only Windows environments. PR #2026 will update the test to run only locally until we can resolve this issue.
The following test is failing intermittently on MacOS:
opentelemetry-ruby/logs_sdk/test/opentelemetry/sdk/logs/export/batch_log_record_processor_test.rb
Lines 474 to 493 in 60ebfd4
Previously, it was disabled for only Windows environments. PR #2026 will update the test to run only locally until we can resolve this issue.