diff options
author | Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> | 2021-10-15 05:57:24 +0000 |
---|---|---|
committer | Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> | 2021-10-21 09:48:00 +0000 |
commit | 4c058689904178714211f38bc5e5e083eaffadbf (patch) | |
tree | bbb11bbbfb212baa26a05a3d02491b04eb8889f0 /tests/test_trapd_vnf_table.py | |
parent | 8ea70b60efac67f8b4ad4be8b8018a946f551d06 (diff) |
Fix cbs polling process startup failure
cbs polling process sometimes failed to start by `relation
"hb_common" does not exist` error.
The polling process tries to read hb_common table on startup,
but the process is created before the parent process creates
hb_common table. So the error may occur in race condition.
cbs_polling process must be started after `hb_common` table populated.
Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com>
Issue-ID: DCAEGEN2-2944
Change-Id: Iee682b62a385dfaf2ec1355e781cda9c3def23c0
Diffstat (limited to 'tests/test_trapd_vnf_table.py')
-rw-r--r-- | tests/test_trapd_vnf_table.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_trapd_vnf_table.py b/tests/test_trapd_vnf_table.py index 4f6e5e4..2110324 100644 --- a/tests/test_trapd_vnf_table.py +++ b/tests/test_trapd_vnf_table.py @@ -57,9 +57,8 @@ class test_vnf_tables(unittest.TestCase): self.assertEqual(result, True) def test_cbspolling(self): - result= verify_cbspolling() - _logger.info(result) - self.assertEqual(result, True) + # Check if no exception thrown + verify_cbspolling() def test_fetch_json_file(self): result= verify_fetch_json_file() |