Browse Source

[2157] corrected order of EXPECT_EQ params: 1st param should be the 'expected'.

JINMEI Tatuya 12 years ago
parent
commit
e3fb3a101e
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/bin/auth/tests/auth_srv_unittest.cc

+ 6 - 6
src/bin/auth/tests/auth_srv_unittest.cc

@@ -1345,9 +1345,9 @@ TEST_F(AuthSrvTest, queryCounterOpcodes) {
                        ::tolower);
 
         // The counter should be initialized to expected value.
-        EXPECT_EQ(server.getStatistics()->get("zones")->get("_SERVER_")->
-                      get("opcode")->get(item_name)->intValue(),
-                  expected - (i + 1));
+        EXPECT_EQ(expected - (i + 1),
+                  server.getStatistics()->get("zones")->get("_SERVER_")->
+                  get("opcode")->get(item_name)->intValue());
 
         // For each possible opcode, create a request message and send it
         UnitTestUtil::createRequestMessage(request_message, Opcode(i),
@@ -1367,9 +1367,9 @@ TEST_F(AuthSrvTest, queryCounterOpcodes) {
         // Confirm the counter.
         // This test only checks for opcodes; some part of the other items
         // depends on the opcode.
-        EXPECT_EQ(server.getStatistics()->get("zones")->get("_SERVER_")->
-                      get("opcode")->get(item_name)->intValue(),
-                  expected);
+        EXPECT_EQ(expected,
+                  server.getStatistics()->get("zones")->get("_SERVER_")->
+                  get("opcode")->get(item_name)->intValue());
     }
 }