You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2015/05/23 03:31:28 UTC
mesos git commit: Minor signed comparison fix in sorter tests.
Repository: mesos
Updated Branches:
refs/heads/master 87d8bd08e -> 9c5c92724
Minor signed comparison fix in sorter tests.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/9c5c9272
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/9c5c9272
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/9c5c9272
Branch: refs/heads/master
Commit: 9c5c92724b7c095a267a501c962cba915ded7d52
Parents: 87d8bd0
Author: Vinod Kone <vi...@gmail.com>
Authored: Fri May 22 18:31:11 2015 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Fri May 22 18:31:11 2015 -0700
----------------------------------------------------------------------
src/tests/sorter_tests.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/9c5c9272/src/tests/sorter_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/sorter_tests.cpp b/src/tests/sorter_tests.cpp
index e1a7e6e..435e0bf 100644
--- a/src/tests/sorter_tests.cpp
+++ b/src/tests/sorter_tests.cpp
@@ -350,7 +350,7 @@ TEST(SorterTest, UpdateTotal)
"b", slaveId, Resources::parse("cpus:1;mem:2").get());
list<string> sorted = sorter.sort();
- ASSERT_EQ(2, sorted.size());
+ ASSERT_EQ(2u, sorted.size());
EXPECT_EQ("b", sorted.front());
EXPECT_EQ("a", sorted.back());
@@ -360,7 +360,7 @@ TEST(SorterTest, UpdateTotal)
// Now the dominant share of "a" is 0.1 (mem) and "b" is 0.2 (mem),
// which should change the sort order.
sorted = sorter.sort();
- ASSERT_EQ(2, sorted.size());
+ ASSERT_EQ(2u, sorted.size());
EXPECT_EQ("a", sorted.front());
EXPECT_EQ("b", sorted.back());
}
@@ -402,7 +402,7 @@ TEST(SorterTest, RevocableResources)
// Check that the sort is correct.
list<string> sorted = sorter.sort();
- ASSERT_EQ(2, sorted.size());
+ ASSERT_EQ(2u, sorted.size());
EXPECT_EQ("a", sorted.front());
EXPECT_EQ("b", sorted.back());
}