Avoid 'Access is denied. : 5 : File "server" can't be opened/created for reading' error in tests.

This commit is contained in:
levlam 2023-10-06 00:29:08 +03:00
parent 6c88f6dbfe
commit 06e01a9ebd

View File

@ -292,7 +292,6 @@ class OpenClose final : public td::Actor {
cnt_--;
yield();
} else {
td::unlink(file_name).ignore();
td::Scheduler::instance()->finish();
}
}
@ -310,6 +309,7 @@ TEST(Actors, open_close) {
while (scheduler.run_main(10)) {
}
scheduler.finish();
td::unlink("server").ignore();
}
class MsgActor : public td::Actor {