diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2013-05-26 01:12:35 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2013-05-26 01:12:35 (GMT) |
commit | cea093d684d26ef9f59f52f4e82423caba5c4e98 (patch) | |
tree | 70852d4312bca3cc81ea7aadf1c57c9a6a9e8393 | |
parent | f0f8287ac9f69132640ba6076d2171525c6b5698 (diff) |
Actualize tests
-rwxr-xr-x | tests/units/client/online_commands.py | 1 | ||||
-rwxr-xr-x | tests/units/node/master.py | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/units/client/online_commands.py b/tests/units/client/online_commands.py index d6a7510..c535433 100755 --- a/tests/units/client/online_commands.py +++ b/tests/units/client/online_commands.py @@ -451,7 +451,6 @@ class OnlineCommandsTest(tests.Test): self.assertEqual([ {'guid': guid, 'document': 'context', 'event': 'create'}, {'guid': guid, 'document': 'context', 'event': 'update'}, - {'document': 'implementation', 'event': 'populate'}, {'guid': guid, 'event': 'delete', 'document': 'context'}, ], events) diff --git a/tests/units/node/master.py b/tests/units/node/master.py index 532305e..4e78aaf 100755 --- a/tests/units/node/master.py +++ b/tests/units/node/master.py @@ -161,6 +161,9 @@ class MasterTest(tests.Test): 'summary': 'summary', 'description': 'description', }) + coroutine.sleep(.5) + self.assertEqual(0, len(events)) + ipc.put(['context', guid, 'aliases'], { 'Gentoo': { 'binary': [['bin']], @@ -168,12 +171,12 @@ class MasterTest(tests.Test): }, }) coroutine.sleep(.5) + self.assertEqual(1, len(events)) + assert 'mtime' in events[0]['props'] self.assertEqual({ 'Gentoo-2.1': {'status': 'success', 'binary': ['bin'], 'devel': ['devel']}, }, ipc.get(['context', guid, 'packages'])) - self.assertEqual(2, len(events)) - assert 'mtime' in events[0]['props'] def test_InvalidateSolutionsOnDependenciesChanges(self): self.start_online_client() |