Repository: mesos
Updated Branches:
  refs/heads/1.0.x 8c6e36600 -> 3611eb0b7


Used MESOS_VERSION instead of fixed mesos version string.

Fixed the hard coded version string in GetAgents test in
api_tests.

Review: https://reviews.apache.org/r/49788/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3611eb0b
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3611eb0b
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3611eb0b

Branch: refs/heads/1.0.x
Commit: 3611eb0b7eea8d144e9b2e840e0ba16f2f659ee3
Parents: 8c6e366
Author: zhou xing <xingz...@cn.ibm.com>
Authored: Fri Jul 8 09:54:50 2016 -0500
Committer: Vinod Kone <vinodk...@gmail.com>
Committed: Wed Aug 10 16:57:40 2016 -0700

----------------------------------------------------------------------
 src/tests/api_tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/3611eb0b/src/tests/api_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/api_tests.cpp b/src/tests/api_tests.cpp
index 5809e99..4db049a 100644
--- a/src/tests/api_tests.cpp
+++ b/src/tests/api_tests.cpp
@@ -190,7 +190,7 @@ TEST_P(MasterAPITest, GetAgents)
   ASSERT_EQ("host", v1Agent.agent_info().hostname());
   ASSERT_EQ(agent.get()->pid, v1Agent.pid());
   ASSERT_TRUE(v1Agent.active());
-  ASSERT_EQ("1.0.0", v1Agent.version());
+  ASSERT_EQ(MESOS_VERSION, v1Agent.version());
   ASSERT_EQ(4, v1Agent.total_resources_size());
 }
 

Reply via email to