diff --git a/src/credentials/tests/TestPersistentStorageOpCertStore.cpp b/src/credentials/tests/TestPersistentStorageOpCertStore.cpp index c917cdb1e5a47d..7920a063eb29c7 100644 --- a/src/credentials/tests/TestPersistentStorageOpCertStore.cpp +++ b/src/credentials/tests/TestPersistentStorageOpCertStore.cpp @@ -408,7 +408,6 @@ void TestReverts(nlTestSuite * inSuite, void * inContext) { TestPersistentStorageDelegate storageDelegate; PersistentStorageOpCertStore opCertStore; - DefaultStorageKeyAllocator keyAllocator; // Failure before Init CHIP_ERROR err = opCertStore.RemoveOpCertsForFabric(kFabricIndex1); @@ -633,7 +632,6 @@ void TestRevertAddNoc(nlTestSuite * inSuite, void * inContext) { TestPersistentStorageDelegate storageDelegate; PersistentStorageOpCertStore opCertStore; - DefaultStorageKeyAllocator keyAllocator; // Init succeeds CHIP_ERROR err = opCertStore.Init(&storageDelegate);