Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2805

mtest: Add a way to check if all MockResponses have been consumed

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Gone away
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • Testing
    • None

    Description

      Scenario:

      You create a unit test with 5 mock responses, and you want to make sure that each of those responses will be consumed.

      Example:

      We have collection A and B. We want to asure in unit test, that when there is an insert on collection A, an insert on collection B will be executed. So we need a method NoRemainingMockResponses() which returns true if all mock responses had consumed.

      Attachments

        Activity

          People

            qingyang.hu@mongodb.com Qingyang Hu
            stavtsob@gmail.com Stavros Tsompanidis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: