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

Unit test failure in TestappTest.CollectionsSelectBucket; Don't use ASSERT_NO_THROW

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      [2020-07-02T07:51:01.396Z] 183/410 Test #361: memcached_testapp.ep.TestappTest ............................................................................***Failed    0.29 sec
      09:51:01  Note: Google Test filter = TestappTest.*
      09:51:01  [==========] Running 1 test from 1 test suite.
      09:51:01  [----------] Global test environment set-up.
      09:51:01  [----------] 1 test from TestappTest
      09:51:01  2020-07-02T00:51:01.208479-07:00 INFO recalculate_max_connections: max_fds:1048576, max_connections:1000, system_connections:5000, engine_fds:1046528
      [2020-07-02T07:51:01.396Z] [ RUN      ] TestappTest.CollectionsSelectBucket
      09:51:01  ../kv_engine/tests/testapp/testapp_tests.cc:626: Failure
      09:51:01  Expected: conn.createBucket("collections", "", BucketType::Couchbase) doesn't throw an exception.
      09:51:01    Actual: it throws.
      09:51:01  [  FAILED  ] TestappTest.CollectionsSelectBucket (11 ms)
      09:51:01  [----------] 1 test from TestappTest (11 ms total)
      09:51:01  
      09:51:01  [----------] Global test environment tear-down
      09:51:01  [==========] 1 test from 1 test suite ran. (164 ms total)
      09:51:01  [  PASSED  ] 0 tests.
      09:51:01  [  FAILED  ] 1 test, listed below:
      09:51:01  [  FAILED  ] TestappTest.CollectionsSelectBucket
      09:51:01  
      09:51:01   1 FAILED TEST
      

      Unfortunately all information is lost due to ASSERT_NO_THROW is used (the test would fail if an exception IS thrown, AND it would dump the content of the exception).

      Attachments

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

        Activity

          People

            trond Trond Norbye
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty