[libgdata/wip/rishi/drive: 10/11] tests: foo
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/wip/rishi/drive: 10/11] tests: foo
- Date: Tue, 19 Sep 2017 16:57:12 +0000 (UTC)
commit a76acc97e5dd393f1c423ec285a7d4b4ffdf12a7
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Sep 19 18:53:12 2017 +0200
tests: foo
gdata/tests/documents.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gdata/tests/documents.c b/gdata/tests/documents.c
index 542efe8..044851c 100644
--- a/gdata/tests/documents.c
+++ b/gdata/tests/documents.c
@@ -282,19 +282,19 @@ _set_up_temp_document (GDataDocumentsEntry *entry, GDataService *service, GFile
/* HACK: Query for the new document, as Google's servers appear to modify it behind our back when
creating the document:
* http://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=2337. We have to wait a few
seconds before trying this to allow the
* various Google servers to catch up with each other. Thankfully, we don't have to wait when running
against the mock server. */
- /* if (uhm_server_get_enable_online (mock_server) == TRUE) { */
- /* g_usleep (5 * G_USEC_PER_SEC); */
- /* } */
+ if (uhm_server_get_enable_online (mock_server) == TRUE) {
+ g_usleep (5 * G_USEC_PER_SEC);
+ }
- /* new_document = GDATA_DOCUMENTS_DOCUMENT (gdata_service_query_single_entry (service, */
- /*
gdata_documents_service_get_primary_authorization_domain (), */
- /* gdata_entry_get_id
(GDATA_ENTRY (document)), NULL, */
- /* G_OBJECT_TYPE
(document), NULL, NULL)); */
- /* g_assert (GDATA_IS_DOCUMENTS_DOCUMENT (new_document)); */
+ new_document = GDATA_DOCUMENTS_DOCUMENT (gdata_service_query_single_entry (service,
+
gdata_documents_service_get_primary_authorization_domain (),
+ gdata_entry_get_id
(GDATA_ENTRY (document)), NULL,
+ G_OBJECT_TYPE (document),
NULL, NULL));
+ g_assert (GDATA_IS_DOCUMENTS_DOCUMENT (new_document));
- /* g_object_unref (document); */
+ g_object_unref (document);
- return document;
+ return new_document;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]