diff --git a/src/app/tests/TestICDMonitoringTable.cpp b/src/app/tests/TestICDMonitoringTable.cpp index c6db890d68d087..170ece20e1778d 100644 --- a/src/app/tests/TestICDMonitoringTable.cpp +++ b/src/app/tests/TestICDMonitoringTable.cpp @@ -91,7 +91,7 @@ void TestEntryAssignationOverload(nlTestSuite * aSuite, void * aContext) NL_TEST_ASSERT(aSuite, entry2.checkInNodeID == entry.checkInNodeID); NL_TEST_ASSERT(aSuite, entry2.monitoredSubject == entry.monitoredSubject); - NL_TEST_ASSERT(aSuite, entry.IsKeyEquivalent(ByteSpan(entry2.key.As()))); + NL_TEST_ASSERT(aSuite, entry2.IsKeyEquivalent(ByteSpan(kKeyBuffer1a))); } void TestEntryKeyFunctions(nlTestSuite * aSuite, void * aContext)