From bf2a2af27e7216ce4f2f8b009ad4485204283685 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 13 Jul 2026 13:20:00 +0200 Subject: [PATCH] test(scope): Disable sessions in user-owned scope test Keep the transport callback count focused on the two explicit captures. Automatic session tracking can emit an additional session envelope on platforms that provide release metadata during initialization. Co-Authored-By: OpenAI Codex --- tests/unit/test_scope.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/test_scope.c b/tests/unit/test_scope.c index 491fb74db..cd360d511 100644 --- a/tests/unit/test_scope.c +++ b/tests/unit/test_scope.c @@ -1373,6 +1373,7 @@ SENTRY_TEST(scope_capture_user_owned) uint64_t called = 0; SENTRY_TEST_OPTIONS_NEW(options); sentry_options_set_dsn(options, "https://foo@sentry.invalid/42"); + sentry_options_set_auto_session_tracking(options, false); sentry_transport_t *transport = sentry_transport_new(send_envelope_count); sentry_transport_set_state(transport, &called); sentry_options_set_transport(options, transport);