Repository: mesos
Updated Branches:
  refs/heads/master 196dad76c -> 1f12ca5d2


Fixed clang compilation problem for the SLRP metrics test.

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


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

Branch: refs/heads/master
Commit: 1f12ca5d2340133f81188d20ad426ac9f3aa7f12
Parents: 196dad7
Author: Chun-Hung Hsiao <chhs...@mesosphere.io>
Authored: Fri Feb 2 17:08:17 2018 -0800
Committer: Jie Yu <yujie....@gmail.com>
Committed: Fri Feb 2 17:08:17 2018 -0800

----------------------------------------------------------------------
 src/tests/storage_local_resource_provider_tests.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/1f12ca5d/src/tests/storage_local_resource_provider_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/storage_local_resource_provider_tests.cpp 
b/src/tests/storage_local_resource_provider_tests.cpp
index bbacc3f..ce24161 100644
--- a/src/tests/storage_local_resource_provider_tests.cpp
+++ b/src/tests/storage_local_resource_provider_tests.cpp
@@ -2609,11 +2609,11 @@ TEST_F(StorageLocalResourceProviderTest, ROOT_Metrics)
 
   JSON::Object snapshot = Metrics();
 
-  ASSERT_NE(0, snapshot.values.count(
+  ASSERT_NE(0u, snapshot.values.count(
       prefix + "csi_controller_plugin_terminations"));
   EXPECT_EQ(0, snapshot.values.at(
       prefix + "csi_controller_plugin_terminations"));
-  ASSERT_NE(0, snapshot.values.count(
+  ASSERT_NE(0u, snapshot.values.count(
       prefix + "csi_node_plugin_terminations"));
   EXPECT_EQ(0, snapshot.values.at(
       prefix + "csi_node_plugin_terminations"));
@@ -2640,11 +2640,11 @@ TEST_F(StorageLocalResourceProviderTest, ROOT_Metrics)
 
   snapshot = Metrics();
 
-  ASSERT_NE(0, snapshot.values.count(
+  ASSERT_NE(0u, snapshot.values.count(
       prefix + "csi_controller_plugin_terminations"));
   EXPECT_EQ(1, snapshot.values.at(
       prefix + "csi_controller_plugin_terminations"));
-  ASSERT_NE(0, snapshot.values.count(
+  ASSERT_NE(0u, snapshot.values.count(
       prefix + "csi_node_plugin_terminations"));
   EXPECT_EQ(1, snapshot.values.at(
       prefix + "csi_node_plugin_terminations"));

Reply via email to