File tree Expand file tree Collapse file tree
tests/integration/scenarios/out_kafka/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -581,7 +581,9 @@ def test_out_kafka_otlp_logs_preserve_resources_across_requests_in_same_chunk(
581581 messages = service .wait_for_messages (1 , timeout = 10 )
582582 service .stop ()
583583
584- resources = _collect_resources (messages , format_name , "logs" )
584+ assert len (messages ) == 1
585+
586+ resources = _collect_resources (messages [:1 ], format_name , "logs" )
585587 body_to_user = {
586588 record ["body" ]["stringValue" ]: next (
587589 attribute ["value" ]["stringValue" ]
@@ -593,6 +595,8 @@ def test_out_kafka_otlp_logs_preserve_resources_across_requests_in_same_chunk(
593595 for record in scope ["logRecords" ]
594596 }
595597
598+ assert "event-a" in body_to_user
599+ assert "event-b" in body_to_user
596600 assert body_to_user ["event-a" ] == "user-a"
597601 assert body_to_user ["event-b" ] == "user-b"
598602 assert len (resources ) == 2
You can’t perform that action at this time.
0 commit comments