Project

General

Profile

Task #2418

Updated by Junxiao Shi over 8 years ago

In `ValidatorConfig` The test suite: case intermittently fails: 

     [Exception] - std::runtime_error: Key name already exists: /TestValidatorConfig/Nrd-1/Nrd-2/ksk-1415684132200 
      == [File] - ../tests/unit-tests/security/test-validator-config.cpp 
      == [Line] - 1257 

 **Ensure certificates written to filesystem are properly cleaned up** even in the case the test case The origin of problem is terminated due not exactly known (if it is time related, then with UnitTestTimeFixture this error should be persistent, not intermittent). 

 * * * 

 The solution of this problem is already part of http://gerrit.named-data.net/#/c/1630/, but I'm proposing to make this fix explicit (as a fatal error. 

 **Use UnitTestTimeFixture** instead of `sleep`. 

 **Ensure SQLite PIB/TPM are clean** before executing any test case. separate commit). 

Back