Browse Source

[1751] check with a real pid

Naoki Kambe 13 years ago
parent
commit
ddf22289ac
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bin/auth/tests/statistics_unittest.cc

+ 2 - 2
src/bin/auth/tests/statistics_unittest.cc

@@ -281,8 +281,8 @@ TEST_F(AuthCountersTest, submitStatisticsWithoutValidator) {
                          ->get(0)->stringValue());
     EXPECT_EQ("Auth", statistics_session_.sent_msg->get("command")
                          ->get(1)->get("owner")->stringValue());
-    EXPECT_TRUE(statistics_session_.sent_msg->get("command")
-                ->get(1)->get("pid")->intValue() > 0);
+    EXPECT_EQ(statistics_session_.sent_msg->get("command")
+              ->get(1)->get("pid")->intValue(), getpid());
     ConstElementPtr statistics_data = statistics_session_.sent_msg
                                           ->get("command")->get(1)
                                           ->get("data");