aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/secure_storage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/secure_storage.cpp')
-rw-r--r--test/secure_storage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/secure_storage.cpp b/test/secure_storage.cpp
index 2126054f8..714e92f77 100644
--- a/test/secure_storage.cpp
+++ b/test/secure_storage.cpp
@@ -67,5 +67,8 @@ TEST(SecureStorage, simple) {
auto hash = td::secure_storage::encrypt_file(value_secret, value_path, encrypted_path).move_as_ok();
td::secure_storage::decrypt_file(value_secret, hash, encrypted_path, decrypted_path).ensure();
ASSERT_TRUE(td::read_file(decrypted_path).move_as_ok().as_slice() == file_value);
+ td::unlink(value_path).ignore();
+ td::unlink(encrypted_path).ignore();
+ td::unlink(decrypted_path).ignore();
}
}