Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7220

'EXPECT_SOME' and other asserts don't work with 'Try's that have a custom error state.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.0
    • stout
    • Mesosphere Sprint 2018-20
    • 1

    Description

      MESOS-5110 introduced an additional template parameter for Try to support custom error types. Using these values with EXPECT_SOME doesn't work, i.e.

      Try<Foo, FooError> foo = bar();
      EXPECT_SOME(foo);
      

      won't compile. The other assertions in stout/gtest.hpp are likely affected as well.

      Attachments

        Activity

          People

            chhsia0 Chun-Hung Hsiao
            nfnt Jan Schlicht
            Benjamin Bannier Benjamin Bannier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: