Skip to content

Commit

Permalink
remove setting HeapName in recover verify test
Browse files Browse the repository at this point in the history
  • Loading branch information
qtcwt committed Jun 3, 2022
1 parent 8a863a9 commit fa50a95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tests/RecoverVerifyTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ inline std::string RecoverVerifyTest<std::string,std::string>::fromInt(uint64_t
template <class K, class V>
int RecoverVerifyTest<K,V>::execute(GlobalTestConfig* gtc, LocalTestConfig* ltc){
std::string value_buffer; // for string kv only
gtc->setEnv("HeapName", "RecoveryVerifyTest");
if (!gtc->checkEnv("NoVerify")){
if (ltc->tid == 0){ // FIXME: workaround when we can't change the total thread count of ralloc.
std::unordered_map<K,V> reference;
Expand Down Expand Up @@ -130,6 +129,7 @@ int RecoverVerifyTest<K,V>::execute(GlobalTestConfig* gtc, LocalTestConfig* ltc)
std::cout<<"rec_cnt currect."<<std::endl;
} else {
std::cout<<"recovered:"<<rec_cnt<<" expecting:"<<reference.size()<<std::endl;
std::cout<<"Test FAILED!"<<std::endl;
exit(1);
}

Expand All @@ -140,6 +140,7 @@ int RecoverVerifyTest<K,V>::execute(GlobalTestConfig* gtc, LocalTestConfig* ltc)
}
}
std::cout<<"all records recovered."<<std::endl;
std::cout<<"Test PASSED!"<<std::endl;
return ops;
} else {
return 0;
Expand Down

0 comments on commit fa50a95

Please sign in to comment.