Skip to content

Use fixture listener in test_EventSystem - #13308

Merged
JosiahWI merged 1 commit into
apache:masterfrom
JosiahWI:refactor/dedup-inkevent-listener
Jun 23, 2026
Merged

Use fixture listener in test_EventSystem#13308
JosiahWI merged 1 commit into
apache:masterfrom
JosiahWI:refactor/dedup-inkevent-listener

Conversation

@JosiahWI

Copy link
Copy Markdown
Contributor

This removes the Catch2 listener from test_EventSystem.cc, using the identical listener from inkevent_test_fixtures.h instead.

There is a similar listener in the IOBuffer test, but it is not an exact duplicate (it calls LibRecordsConfigInit).

This removes the Catch2 listener from test_EventSystem.cc, using
the identical listener from inkevent_test_fixtures.h instead.

There is a similar listener in the IOBuffer test, but it is not an
exact duplicate (it calls `LibRecordsConfigInit`).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors the test_EventSystem Catch2 unit test executable to use the shared EventProcessorListener defined in inkevent_test_fixtures.h, avoiding duplicated event system bootstrapping logic across inkevent unit tests.

Changes:

  • Include inkevent_test_fixtures.h in test_EventSystem.cc and use inkevent_test::EventProcessorListener.
  • Remove the locally-defined EventProcessorListener struct and its now-redundant includes.

@JosiahWI
JosiahWI merged commit bd785f4 into apache:master Jun 23, 2026
15 checks passed
@JosiahWI
JosiahWI deleted the refactor/dedup-inkevent-listener branch June 23, 2026 18:30
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jul 29, 2026
This removes the Catch2 listener from test_EventSystem.cc, using
the identical listener from inkevent_test_fixtures.h instead.

There is a similar listener in the IOBuffer test, but it is not an
exact duplicate (it calls `LibRecordsConfigInit`).
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jul 29, 2026
This removes the Catch2 listener from test_EventSystem.cc, using
the identical listener from inkevent_test_fixtures.h instead.

There is a similar listener in the IOBuffer test, but it is not an
exact duplicate (it calls `LibRecordsConfigInit`).

(cherry picked from commit bd785f4)
@cmcfarlen cmcfarlen removed this from the 11.0.0 milestone Jul 29, 2026
@github-project-automation github-project-automation Bot moved this from Picked v10.2.0 to For v10.2.0 in ATS v10.2.x Jul 29, 2026
@cmcfarlen cmcfarlen moved this to Picked v10.2.0 in ATS v10.2.x Jul 29, 2026
@cmcfarlen cmcfarlen added this to the 10.2.0 milestone Jul 29, 2026
@cmcfarlen cmcfarlen moved this from For v10.2.0 to Picked v10.2.0 in ATS v10.2.x Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Picked v10.2.0

Development

Successfully merging this pull request may close these issues.

4 participants