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

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

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • None

      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.

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

              Created:
              Updated:
              Resolved: