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

Cleanup topics after unit tests #755

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

ZiyaoWei
Copy link
Contributor

Motivation

Currently a few of the test topics aren't cleaned up after use, so if the same test is ran twice topic creation would fail.

Modifications

defer topic cleanup in unit tests.

Verifying this change

  • Make sure that the change passes the CI checks.

This change is already covered by existing tests. For example, before the change,

go test -timeout 5s -run ^TestHTTPTopicPartitions$ github.com/apache/pulsar-client-go/pulsar -count=2

would fail, and now it would pass.

Documentation

  • Does this pull request introduce a new feature? no

@merlimat merlimat added this to the v0.9.0 milestone Mar 30, 2022
@merlimat merlimat merged commit ae400ca into apache:master Mar 30, 2022
@ZiyaoWei ZiyaoWei deleted the unit-test-topic-cleanup branch March 30, 2022 04:17
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.

None yet

3 participants