You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ch...@apache.org on 2018/11/29 03:44:07 UTC

[mesos] branch master updated: Fixed Mesos-Tidy warning: use of redundant 'get'.

This is an automated email from the ASF dual-hosted git repository.

chhsiao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new 066e0f8  Fixed Mesos-Tidy warning: use of redundant 'get'.
066e0f8 is described below

commit 066e0f812ea1011fbc63881d0f347ba95f7dca31
Author: Chun-Hung Hsiao <ch...@mesosphere.io>
AuthorDate: Wed Nov 28 19:43:50 2018 -0800

    Fixed Mesos-Tidy warning: use of redundant 'get'.
---
 src/tests/master_tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/master_tests.cpp b/src/tests/master_tests.cpp
index 14f6f4a..61b72ed 100644
--- a/src/tests/master_tests.cpp
+++ b/src/tests/master_tests.cpp
@@ -3992,7 +3992,7 @@ TEST_F(MasterTest, ExecutorMessageToRecoveredHttpFramework)
     AWAIT_ASSERT_RESPONSE_STATUS_EQ(OK().status, response);
     AWAIT_ASSERT_RESPONSE_HEADER_EQ(APPLICATION_JSON, "Content-Type", response);
 
-    Try<JSON::Object> state = JSON::parse<JSON::Object>(response.get().body);
+    Try<JSON::Object> state = JSON::parse<JSON::Object>(response->body);
     ASSERT_SOME(state);
     ASSERT_EQ(1u, state->values["frameworks"].as<JSON::Array>().values.size());