Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-3151

ScopeNotFoundException on DropCollection does not have proper message

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None
    • 1

    Description

      The test Test_DropNonExistentScope_Throws_ScopeNotFoundException is failing as the ScopeNotFoundException message thrown from DropScopeAsync is not what is expected:

      Assert.Equal() Failure
      ↓ (pos 0)
      Expected: Scope with name scope_none not found
      Actual: scope_none
      ↑ (pos 0)

      Assertion failure here

      The message contains only the scope name and not the whole message - this only happens when ScopeNotFoundException is thrown via DropScopeAsync, when it is thrown from other CollectionManager APIs it contains the full message, which leads me to believe this is a minor bug.

      Attachments

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

        Activity

          There are no comments yet on this issue.

          People

            jmorris Jeff Morris
            will.broadbelt Will Broadbelt
            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