Skip to content

Commit 59276c3

Browse files
committed
test: Add missing variable
1 parent d7ea817 commit 59276c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

instrumentation/logger/test/opentelemetry/instrumentation/logger/patches/active_support_logger_test.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@
4949
msg = "juniper #{rand(6)}"
5050
Rails.logger.debug(msg)
5151

52-
assert_equal 1, EXPORTER.emitted_log_records.size
53-
assert_match(/#{msg}/, log_record.body)
52+
log_records = EXPORTER.emitted_log_records
53+
assert_equal 1, log_records.size
54+
assert_match(/#{msg}/, log_records.first.body)
5455
end
5556
end
5657
end

0 commit comments

Comments
 (0)