libnm-glib/test: fix test failure for test-remote-settings-client
authorThomas Haller <thaller@redhat.com>
Fri, 8 Aug 2014 09:31:43 +0000 (11:31 +0200)
committerThomas Haller <thaller@redhat.com>
Fri, 8 Aug 2014 09:39:44 +0000 (11:39 +0200)
Due to behavioral change of test-networkmanager-service.py, the test
/remote_settings/remove_connection fails (test_remove_connection() at
test-remote-settings-client.c:318).

Fixes: 66a34803293e1012d7a1728d503dd64a1d906366
Signed-off-by: Thomas Haller <thaller@redhat.com>
tools/test-networkmanager-service.py

index e04621f..2f80ca5 100755 (executable)
@@ -793,9 +793,9 @@ class Connection(dbus.service.Object):
 
     @dbus.service.method(dbus_interface=IFACE_CONNECTION, in_signature='', out_signature='')
     def Delete(self):
-        self.remove_from_connection()
         self.remove_func(self)
         self.Removed()
+        self.remove_from_connection()
 
     @dbus.service.signal(IFACE_CONNECTION, signature='')
     def Removed(self):