Skip to content

Flaky transaction test #916

@solnic

Description

@solnic

Description

Run mix test
Compiling 7 files (.ex)
Generated sentry app
Wrote 75 files in 397.64 kb to: _build/test/lib/sentry/priv/sentry.map
Running ExUnit with seed: 17[8](https://github.com/getsentry/sentry-elixir/actions/runs/15727850584/job/44321718270#step:9:9)002, max_cases: 8

...............................

  1) test to_payload/1 returns a map representation of the transaction (Sentry.TransactionTest)
Error:      test/sentry/transaction_test.exs:[9](https://github.com/getsentry/sentry-elixir/actions/runs/15727850584/job/44321718270#step:9:10)
     Assertion with == failed
     code:  assert config_before == all_config()
     left:  [
              client: Sentry.HackneyClient,
              context_lines: 3,
              dedup_events: false,
              dsn: nil,
              enable_source_code_context: true,
              environment_name: "test",
              extra: %{},
              filter: Sentry.DefaultEventFilter,
              hackney_opts: [recv_timeout: 50, pool: :sentry_pool],
              hackney_pool_max_connections: 50,
              hackney_pool_timeout: 5000,
              in_app_module_allow_list: [],
              in_app_otp_apps: [],
              included_environments: :all,
              integrations: [
                monitor_config_defaults: [],
                max_expected_check_in_time: 600000
              ],
              json_library: Jason,
              log_level: :warning,
              max_breadcrumbs: [10](https://github.com/getsentry/sentry-elixir/actions/runs/15727850584/job/44321718270#step:9:11)0,
              release: nil,
              report_deps: true,
              root_source_code_paths: ["/home/runner/work/sentry-elixir/sentry-elixir"],
              sample_rate: 1.0,
              send_client_reports: true,
              send_max_attempts: 1,
              send_result: :sync,
              source_code_path_pattern: "**/*.ex",
              tags: %{},
              test_mode: true,
              traces_sample_rate: 0.5,
              traces_sampler: nil
            ]
     right: [
              client: Sentry.HackneyClient,
              context_lines: 3,
              dedup_events: false,
              dsn: nil,
              enable_source_code_context: true,
              environment_name: "test",
              extra: %{},
              filter: Sentry.DefaultEventFilter,
              hackney_opts: [recv_timeout: 50, pool: :sentry_pool],
              hackney_pool_max_connections: 50,
              hackney_pool_timeout: 5000,
              in_app_module_allow_list: [],
              in_app_otp_apps: [],
              included_environments: :all,
              integrations: [
                monitor_config_defaults: [],
                max_expected_check_in_time: 600000
              ],
              json_library: Jason,
              log_level: :warning,
              max_breadcrumbs: 100,
              release: nil,
              report_deps: true,
              root_source_code_paths: ["/home/runner/work/sentry-elixir/sentry-elixir"],
              sample_rate: 1.0,
              send_client_reports: true,
              send_max_attempts: 1,
              send_result: :sync,
              source_code_path_pattern: "**/*.ex",
              tags: %{},
              test_mode: true,
              traces_sample_rate: 1.0,
              traces_sampler: nil
            ]
     stacktrace:
       (ex_unit 1.17.3) lib/ex_unit/on_exit_handler.ex:136: ExUnit.OnExitHandler.exec_callback/1
       (ex_unit 1.17.3) lib/ex_unit/on_exit_handler.ex:[12](https://github.com/getsentry/sentry-elixir/actions/runs/15727850584/job/44321718270#step:9:13)2: ExUnit.OnExitHandler.on_exit_runner_loop/0

............................................................................................................................................................................................................................................................................................................................................................................................
Finished in 12.8 seconds (2.7s async, 10.0s sync)
[14](https://github.com/getsentry/sentry-elixir/actions/runs/15727850584/job/44321718270#step:9:15) doctests, 398 tests, 1 failure
Error: Process completed with exit code 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions