From: Mukund Sivaraman Date: Tue, 14 Jan 2014 11:55:19 +0000 (+0530) Subject: [3287] Update test to use sizeof instead of hardcoded length X-Git-Tag: bind10-1.2.0beta1-release~106^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1187e4ae7d409c94a73e6b10fa00751d302e05d;p=thirdparty%2Fkea.git [3287] Update test to use sizeof instead of hardcoded length --- diff --git a/src/lib/dns/tests/rdata_sshfp_unittest.cc b/src/lib/dns/tests/rdata_sshfp_unittest.cc index 9ae23967ec..a3275572d4 100644 --- a/src/lib/dns/tests/rdata_sshfp_unittest.cc +++ b/src/lib/dns/tests/rdata_sshfp_unittest.cc @@ -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(),