X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tests%2Funit%2Ftest_watcher.py;h=5e1960f5d596bc0e1ebc4f013db74ffe71fb610b;hb=322f586832443714479307f3e14d58144cbdb54c;hp=5b1f5b4a9fa91665edb57bd5adf67f5bdd8c4128;hpb=2e17b150a5df5ecd11cf668e7cccea021a03ab7b;p=pti%2Fo2.git diff --git a/tests/unit/test_watcher.py b/tests/unit/test_watcher.py index 5b1f5b4..5e1960f 100644 --- a/tests/unit/test_watcher.py +++ b/tests/unit/test_watcher.py @@ -136,12 +136,12 @@ def create_fake_bus(uow): publish: Callable): return - fakeuow = FakeUnitOfWork() + # fakeuow = FakeUnitOfWork() handlers.EVENT_HANDLERS = {} handlers.COMMAND_HANDLERS = { commands.UpdateOCloud: update_ocloud, } - bus = bootstrap.bootstrap(False, fakeuow) + bus = bootstrap.bootstrap(False, uow) return bus @@ -195,10 +195,10 @@ def test_watchers_worker(): count1 = fakewatcher.fakeOcloudWatcherCounter testedworker.start() - time.sleep(20) + time.sleep(1) assert fakewatcher.fakeOcloudWatcherCounter > count1 # assumed hacking: probe has stopped the sched task count3 = fakewatcher.fakeOcloudWatcherCounter - time.sleep(3) + time.sleep(1) assert fakewatcher.fakeOcloudWatcherCounter == count3