[geary/wip/imap-db-acccount-test-flakey: 2/4] Use standard recursive delete in ImapDB.DatabaseTest
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/imap-db-acccount-test-flakey: 2/4] Use standard recursive delete in ImapDB.DatabaseTest
- Date: Mon, 21 Jan 2019 13:58:33 +0000 (UTC)
commit 5f73eb94b25c919491d77b9c505edd7653a5fa97
Author: Michael Gratton <mike vee net>
Date: Tue Jan 22 00:54:18 2019 +1100
Use standard recursive delete in ImapDB.DatabaseTest
test/engine/imap-db/imap-db-database-test.vala | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/test/engine/imap-db/imap-db-database-test.vala b/test/engine/imap-db/imap-db-database-test.vala
index 892d2815..f7c55728 100644
--- a/test/engine/imap-db/imap-db-database-test.vala
+++ b/test/engine/imap-db/imap-db-database-test.vala
@@ -42,8 +42,7 @@ class Geary.ImapDB.DatabaseTest : TestCase {
// Need to close it again to stop the GC process running
db.close();
- db.file.delete();
- tmp_dir.delete();
+ delete_file(tmp_dir);
}
public void upgrade_0_6() throws Error {
@@ -121,11 +120,7 @@ class Geary.ImapDB.DatabaseTest : TestCase {
// Need to close it again to stop the GC process running
db.close();
- Files.recursive_delete_async.begin(
- tmp_dir, GLib.Priority.DEFAULT, null,
- (obj, res) => { async_complete(res); }
- );
- Files.recursive_delete_async.end(async_result());
+ delete_file(tmp_dir);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]