summaryrefslogtreecommitdiff
path: root/tests/test-remote-node.c
diff options
context:
space:
mode:
authorTimo Dörr <timo@latecrew.de>2013-09-18 10:02:11 +0200
committerTimo Dörr <timo@latecrew.de>2013-09-18 10:04:16 +0200
commitf7b85fd3e37c325d793c4df10164c81421f700d7 (patch)
treea89da78c156e15eb521ffb2163c64a6b1bd22604 /tests/test-remote-node.c
parent4f991735d997fb57f01605fbf5ad67cd72c3def7 (diff)
Remove zmq_* calls from ufo-arch-graph
* Instead of initializing the zmq_context in the arch-graph and pass it in the constructor of the remote node, have the remote node initialize it's own private zmq_context
Diffstat (limited to 'tests/test-remote-node.c')
-rw-r--r--tests/test-remote-node.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test-remote-node.c b/tests/test-remote-node.c
index c970a40..59bd485 100644
--- a/tests/test-remote-node.c
+++ b/tests/test-remote-node.c
@@ -25,7 +25,6 @@
typedef struct {
UfoDaemon *daemon;
UfoConfig *config;
- gpointer zmq_context;
UfoRemoteNode *remote_node;
} Fixture;
@@ -38,9 +37,7 @@ setup (Fixture *fixture, gconstpointer data)
fixture->daemon = ufo_daemon_new (fixture->config, addr);
ufo_daemon_start (fixture->daemon);
- fixture->zmq_context = zmq_ctx_new ();
- fixture->remote_node = (UfoRemoteNode *) ufo_remote_node_new (fixture->zmq_context,
- addr);
+ fixture->remote_node = (UfoRemoteNode *) ufo_remote_node_new (addr);
}
static void
@@ -50,8 +47,6 @@ teardown (Fixture *fixture, gconstpointer data)
ufo_daemon_stop (fixture->daemon);
g_object_unref (fixture->daemon);
-
- zmq_ctx_destroy (fixture->zmq_context);
}
static void