Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Plugin-server tests with kafka need to have consumer stopped #9774

Merged
merged 2 commits into from
May 13, 2022

Conversation

fuziontech
Copy link
Member

Problem

Broken test currently because jest doesn't like to see things getting imported or called after teardown.

Changes

Stop kafka consumers at end of tests

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

CI take the wheel! (also local tests)

@fuziontech fuziontech requested review from macobo and yakkomajuri May 13, 2022 02:13
@macobo
Copy link
Contributor

macobo commented May 13, 2022

Great catch!

@macobo macobo merged commit ae772b8 into master May 13, 2022
@macobo macobo deleted the kafka_tests branch May 13, 2022 06:08
fuziontech added a commit that referenced this pull request May 13, 2022
* master:
  fix: exclusion steps cannot be selected (#9762)
  feat(lemon-button): Support `status` for `primary` buttons (#9782)
  fix: healthcheck for kafka on plugin server (#9771)
  fix(billing): Update billing success message (#9739)
  fix(plugin-server): Set transpileOnly when importing piscina code in tests (#9777)
  fix(plugin-server): Remove unused kafka reset test code (#9779)
  fix: set kafka_skip_broken_messages on dead letter queue table (#9754)
  fix(plugin-server): remove dead code from worker.test.ts (#9776)
  refactor(plugin-server): Run ingestion only on worker threads (#9738)
  fix: Plugin-server tests with kafka need to have consumer stopped (#9774)
  chore(deps): Update posthog-js to 1.21.1 (#9773)
  chore(dep): upgrading rr-web (#9772)
  fix: ouroboros inputs (#9769)
alexkim205 pushed a commit that referenced this pull request May 23, 2022
)

* fix: Plugin-server tests with kafka need to have consumer stopped

* camelCase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants