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][test] AdvertisedListenersTest.setup #17869

Conversation

congbobo184
Copy link
Contributor

@congbobo184 congbobo184 commented Sep 28, 2022

Fixes: #16544

Motivation

now in tests, we getFreePort not occupied, just written in configuration, so it may be created repeatedly. If the socket port is repeatedly, the test will become flaky.

Modifications

when we getFreePort, the port will be occupied and then if you use finished can release this port.

Documentation

  • doc-not-needed

Matching PR in the forked repository

PR in forked repository:

@congbobo184 congbobo184 added type/flaky-tests doc-not-needed Your PR changes do not impact docs labels Sep 28, 2022
@congbobo184 congbobo184 added this to the 2.11.0 milestone Sep 28, 2022
@congbobo184 congbobo184 self-assigned this Sep 28, 2022
@congbobo184 congbobo184 changed the title [fix][flaky-test] BookKeeperClusterTestCase.setup() [fix][flaky-test] AdvertisedListenersTest.setup Sep 28, 2022
Copy link
Contributor

@poorbarcode poorbarcode left a comment

Choose a reason for hiding this comment

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

Good work

@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@7e4c746). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #17869   +/-   ##
=========================================
  Coverage          ?   45.76%           
  Complexity        ?    17549           
=========================================
  Files             ?     1574           
  Lines             ?   128224           
  Branches          ?    14100           
=========================================
  Hits              ?    58678           
  Misses            ?    63492           
  Partials          ?     6054           
Flag Coverage Δ
unittests 45.76% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@codelipenghui codelipenghui changed the title [fix][flaky-test] AdvertisedListenersTest.setup [fix][test] AdvertisedListenersTest.setup Oct 14, 2022
@codelipenghui codelipenghui merged commit b530184 into apache:master Oct 17, 2022
@shibd shibd modified the milestones: 2.11.0, 3.0.0 Oct 22, 2023
shibd pushed a commit to shibd/pulsar that referenced this pull request Oct 22, 2023
shibd pushed a commit to shibd/pulsar that referenced this pull request Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky-test: AdvertisedListenersTest.setup
5 participants