]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3287] Update test to use sizeof instead of hardcoded length
authorMukund Sivaraman <muks@isc.org>
Tue, 14 Jan 2014 11:55:19 +0000 (17:25 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 14 Jan 2014 11:55:19 +0000 (17:25 +0530)
src/lib/dns/tests/rdata_sshfp_unittest.cc

index 9ae23967ecab8ecab02910434f569924726078e7..a3275572d476bf9b75aee2b01e5671d4b473657f 100644 (file)
@@ -227,7 +227,8 @@ TEST_F(Rdata_SSHFP_Test, toWire) {
     this->obuffer.clear();
     rdata_sshfp.toWire(this->obuffer);
 
-    EXPECT_EQ(22, this->obuffer.getLength());
+    EXPECT_EQ(sizeof (rdata_sshfp_wiredata),
+              this->obuffer.getLength());
 
     EXPECT_PRED_FORMAT4(UnitTestUtil::matchWireData,
                         this->obuffer.getData(),