Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-37779

handleDCPError should be interchangable (testing)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Minor
    • 6.6.0
    • 6.6.0
    • tools

    Description

      Upon receiving an unexpected error the DCP client will call handleDCPError; this function possibly calls 'os.Exit(1)' which is really annoying to test as Go does not allow capturing os.Exit and test fails if os.Exit is called even if it is the correct behaviour. We should be able to interchange this to make unit testing easier (possible).

      Attachments

        For Gerrit Dashboard: MB-37779
        # Subject Branch Project Status CR V

        Activity

          People

            james.lee James Lee
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty