From 06e01a9ebdb36de37624a32aee8e86f8c8a0cfa0 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 6 Oct 2023 00:29:08 +0300 Subject: [PATCH] Avoid 'Access is denied. : 5 : File "server" can't be opened/created for reading' error in tests. --- tdactor/test/actors_simple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdactor/test/actors_simple.cpp b/tdactor/test/actors_simple.cpp index e01b356e5..fccf23702 100644 --- a/tdactor/test/actors_simple.cpp +++ b/tdactor/test/actors_simple.cpp @@ -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 {