summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-11-25 17:15:38 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-11-25 17:16:06 +0100
commit1cb0fb723a4fe72ee1b508675dfccbc5aeacd743 (patch)
tree4dbd5d06db95d17c67207ac819bf7bb8019a3d66 /tests
parent21c1eef078c7965c45a38289b1a6f36ddee9db94 (diff)
downloadufo-filters-1cb0fb723a4fe72ee1b508675dfccbc5aeacd743.tar.gz
ufo-filters-1cb0fb723a4fe72ee1b508675dfccbc5aeacd743.tar.bz2
ufo-filters-1cb0fb723a4fe72ee1b508675dfccbc5aeacd743.tar.xz
ufo-filters-1cb0fb723a4fe72ee1b508675dfccbc5aeacd743.zip
Fix integration tests for current remote API
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_tests/test-complete-remote-setup.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/integration_tests/test-complete-remote-setup.c b/tests/integration_tests/test-complete-remote-setup.c
index cd67f61..f13ccc2 100644
--- a/tests/integration_tests/test-complete-remote-setup.c
+++ b/tests/integration_tests/test-complete-remote-setup.c
@@ -29,10 +29,12 @@ typedef struct {
static void
setup (Fixture *fixture, gconstpointer data)
{
+ GError *error = NULL;
gchar *addr = g_strdup ("tcp://127.0.0.1:5555");
fixture->daemon = ufo_daemon_new (addr);
- ufo_daemon_start (fixture->daemon);
+ ufo_daemon_start (fixture->daemon, &error);
+ g_assert_no_error (error);
fixture->tmpdir = g_strdup ("ufotemp-XXXXXX");
g_mkdtemp (fixture->tmpdir);
@@ -41,7 +43,11 @@ setup (Fixture *fixture, gconstpointer data)
static void
teardown (Fixture *fixture, gconstpointer data)
{
- ufo_daemon_stop (fixture->daemon);
+ GError *error = NULL;
+
+ ufo_daemon_stop (fixture->daemon, &error);
+ g_assert_no_error (error);
+
g_object_unref (fixture->daemon);
g_rmdir (fixture->tmpdir);
@@ -104,7 +110,6 @@ test_simple_invert (Fixture *fixture,
ufo_graph_connect_nodes (graph, UFO_NODE (cl2), UFO_NODE (writer), NULL);
gchar *remote = g_strdup ("tcp://127.0.0.1:5555");
- GList *remotes = g_list_append (NULL, remote);
UfoBaseScheduler *sched = ufo_scheduler_new ();
ufo_base_scheduler_run (sched, UFO_TASK_GRAPH (graph), NULL);