New and fixed tests

This commit is contained in:
Andrew nuark G 2020-12-28 22:22:45 +07:00
parent aa838bf826
commit b7ceb7087a
3 changed files with 95 additions and 45 deletions

View file

@ -110,5 +110,10 @@ void apparatus::init() {
}
void apparatus::shutdown() {
delete apparatus::_instance;
apparatus::instance()->save();
if (apparatus::isFirstRun() && apparatus::instance()->get_auth_subsystem()->users().length() > 0) {
apparatus::generate_lock_file();
}
// delete apparatus::_instance;
apparatus::_instance = nullptr;
}