[geary/wip/imap-db-acccount-test-flakey] Add temp debug logging



commit 60e8634ca8a84f666c0a0b1345cc9cc76f071c27
Author: Michael Gratton <mike vee net>
Date:   Mon Jan 21 15:23:55 2019 +1030

    Add temp debug logging

 test/engine/imap-db/imap-db-account-test.vala | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/test/engine/imap-db/imap-db-account-test.vala b/test/engine/imap-db/imap-db-account-test.vala
index d70e44e5..c6d0cd4f 100644
--- a/test/engine/imap-db/imap-db-account-test.vala
+++ b/test/engine/imap-db/imap-db-account-test.vala
@@ -41,12 +41,14 @@ class Geary.ImapDB.AccountTest : TestCase {
         );
 
         this.account = new Account(config);
+        print("\n *** opening account\n");
         this.account.open_async.begin(
             this.tmp_dir,
             GLib.File.new_for_path(_SOURCE_ROOT_DIR).get_child("sql"),
             null,
             (obj, ret) => { async_complete(ret); }
         );
+        print("*** waiting for account\n");
         this.account.open_async.end(async_result());
 
         this.root = new FolderRoot(false);
@@ -54,10 +56,12 @@ class Geary.ImapDB.AccountTest : TestCase {
 
     public override void tear_down() throws GLib.Error {
         this.root = null;
+        print("\n *** closing account\n");
         this.account.close_async.begin(
             null,
             (obj, ret) => { async_complete(ret); }
         );
+        print("*** waiting for account\n");
         this.account.close_async.end(async_result());
 
         delete_file(this.tmp_dir);
@@ -267,6 +271,7 @@ class Geary.ImapDB.AccountTest : TestCase {
     }
 
     public void fetch_child_folder() throws GLib.Error {
+        print("\n *** inserting data");
         this.account.db.exec("""
             INSERT INTO FolderTable (id, name, parent_id)
             VALUES
@@ -274,18 +279,21 @@ class Geary.ImapDB.AccountTest : TestCase {
                 (2, 'test2', 1);
         """);
 
+        print("*** fetching folder\n");
         this.account.fetch_folder_async.begin(
             this.root.get_child("test1").get_child("test2"),
             null,
             (obj, ret) => { async_complete(ret); }
         );
 
+        print("*** waiting for result\n");
         Folder? result = this.account.fetch_folder_async.end(async_result());
         assert_non_null(result);
         assert_string("test2", result.get_path().name);
     }
 
     public void fetch_nonexistent_folder() throws GLib.Error {
+        print("\n *** inserting data");
         this.account.db.exec("""
             INSERT INTO FolderTable (id, name, parent_id)
             VALUES
@@ -293,11 +301,13 @@ class Geary.ImapDB.AccountTest : TestCase {
                 (2, 'test2', 1);
         """);
 
+        print("*** fetching folder\n");
         this.account.fetch_folder_async.begin(
             this.root.get_child("test3"),
             null,
             (obj, ret) => { async_complete(ret); }
         );
+        print("*** waiting for result\n");
         try {
             this.account.fetch_folder_async.end(async_result());
             assert_not_reached();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]