Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1981

Avoid random ports in tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.1
    • test
    • None

    Description

      Tests currently use random ports. The same port may be assigned to multiple RPC endpoints, especially if the server using the random port is not started right away.

      org.apache.ratis.grpc.TestGroupManagementWithGrpc.testMultiGroup5Nodes  Time elapsed: 1.064 s  <<< ERROR!
      ...
      Caused by: java.io.IOException: Failed to bind to address 0.0.0.0/0.0.0.0:45379
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m