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

MonitorTest.WatchUnwatch failed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.13.0
    • None
    • None

    Description

      [ RUN ] MonitorTest.WatchUnwatch
      ../../src/tests/monitor_tests.cpp:126: Failure
      Value of: (response).get().body
      Actual: "[{\"executor_id\":\"executor\",\"executor_name\":\"name\",\"framework_id\":\"framework\",\"resource_usage\":

      {\"cpu_time\":0,\"cpu_usage\":0,\"memory_rss\":0}

      ,\"source\":\"source\"}]"
      Expected: strings::format( "[{" "\"executor_id\":\"executor\"," "\"executor_name\":\"name\"," "\"framework_id\":\"framework\"," "\"resource_usage\":

      {" "\"cpu_time\":%g," "\"cpu_usage\":%g," "\"memory_rss\":%lu" "}

      ," "\"source\":\"source\"" "}]", statistics.cpu_user_time() + statistics.cpu_system_time(), statistics.cpu_usage(), statistics.memory_rss()).get()
      Which is: "[{\"executor_id\":\"executor\",\"executor_name\":\"name\",\"framework_id\":\"framework\",\"resource_usage\":

      {\"cpu_time\":6,\"cpu_usage\":0,\"memory_rss\":1024}

      ,\"source\":\"source\"}]"
      [ FAILED ] MonitorTest.WatchUnwatch (1005 ms)

      Attachments

        Activity

          People

            benjaminhindman Benjamin Hindman
            benjaminhindman Benjamin Hindman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: