OSDN Git Service

Fix the unit test failure.
authorYao Chen <yaochen@google.com>
Sat, 18 Nov 2017 20:03:42 +0000 (12:03 -0800)
committerYao Chen <yaochen@google.com>
Sat, 18 Nov 2017 20:03:42 +0000 (12:03 -0800)
Test: statsd_test
Change-Id: I7ab57d4eb8789523a2b435413fd35057602cc988

cmds/statsd/tests/ConfigManager_test.cpp

index fad5de6..f570522 100644 (file)
@@ -85,7 +85,7 @@ TEST(ConfigManagerTest, TestAddUpdateRemove) {
         // TODO: Remove this when we get rid of the fake one, and make this
         // test loading one from disk somewhere.
         EXPECT_CALL(*(listener.get()),
-                    OnConfigUpdated(ConfigKeyEq(0, "fake"), StatsdConfigEq("12345")))
+                    OnConfigUpdated(ConfigKeyEq(1000, "fake"), StatsdConfigEq("12345")))
                 .RetiresOnSaturation();
         manager->Startup();