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

Create ns_tick_agent unit test

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 7.6.2
    • ns_server
    • None
    • 0

    Description

      In this code review https://review.couchbase.org/c/ns_server/+/207726 it was suggested that a unit test be created. The issue that was fixed involved possibly losing a net leader notification. Via slack

      Steve

      I'm not sure how difficult a test it would be to write. I'd have to look into what other, if there are any, tests around subscribing to events exist.

      Ben

      I'm not sure you need to actually subscribe to events here. The fix and test should be for the ns_tick_agent module so you could just mock away the event subscription and send the message yourself.

      I've opened this ticket to gather ideas of what should be tested in this case.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            steve.watanabe Steve Watanabe
            steve.watanabe Steve Watanabe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty