[evolution-data-server/openismus-work] test-client-view-operations.c: distinguish between DRA and not DRA test
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work] test-client-view-operations.c: distinguish between DRA and not DRA test
- Date: Thu, 28 Mar 2013 13:44:18 +0000 (UTC)
commit 7c19aff325f140f6071f55ac072c7a93cd0cabe9
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Thu Mar 28 22:40:58 2013 +0900
test-client-view-operations.c: distinguish between DRA and not DRA test
.../libebook/client/test-client-view-operations.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tests/libebook/client/test-client-view-operations.c
b/tests/libebook/client/test-client-view-operations.c
index 3c78a28..bd42ab5 100644
--- a/tests/libebook/client/test-client-view-operations.c
+++ b/tests/libebook/client/test-client-view-operations.c
@@ -11,7 +11,7 @@
static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
static ETestServerClosure direct_book_closure = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0 };
-#define N_THREADS 5
+#define N_THREADS 20
#define N_CONTACTS 5
typedef struct {
@@ -167,7 +167,10 @@ test_view_thread (ThreadData *data)
if (!source)
g_error ("Unable to fetch source uid '%s' from the registry", data->book_uid);
- data->client = (EBookClient *)e_book_client_new_direct (registry, source, &error);
+ if (data->closure->type == E_TEST_SERVER_DIRECT_ADDRESS_BOOK)
+ data->client = (EBookClient *)e_book_client_new_direct (registry, source, &error);
+ else
+ data->client = (EBookClient *)e_book_client_new (source, &error);
if (!data->client)
g_error ("Unable to create EBookClient for uid '%s': %s", data->book_uid, error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]