aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarja Hassinen <ext-marja.2.hassinen@nokia.com>2010-07-12 11:24:12 +0300
committerMarja Hassinen <ext-marja.2.hassinen@nokia.com>2010-07-12 11:24:12 +0300
commit8aaac6104d9f135c1f8fe16998b32237b0491122 (patch)
tree15b0dc8d29dd964d1c252aea527b7c21e3d54686
parent8195270c640d0fd96ec619ef40de93d116969ab9 (diff)
Test fix.0.5.15
Commander might send several values in the same message, depending on the real providers running in the system and if they happen to change some values during the test run. Trying to make tests more independent of that.
-rwxr-xr-xlibcontextprovider/customer-tests/types/types.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcontextprovider/customer-tests/types/types.py b/libcontextprovider/customer-tests/types/types.py
index 267a7c07..2a8153ee 100755
--- a/libcontextprovider/customer-tests/types/types.py
+++ b/libcontextprovider/customer-tests/types/types.py
@@ -58,7 +58,10 @@ class Types(unittest.TestCase):
provider.expect("Setting key")
client.send("waitforchanged 5000")
- self.assert_(client.expect("ValueChanged: org.freedesktop.ContextKit.Commander /org/maemo/contextkit/test/prop double:42"))
+ # a fix: don't assert "ValueChanged: ..." since commander might
+ # send other values in the same message (depending on which real
+ # providers are running in the system).
+ self.assert_(client.expect("org.freedesktop.ContextKit.Commander /org/maemo/contextkit/test/prop double:42"))
client.close()
provider.close()