From 4c058689904178714211f38bc5e5e083eaffadbf Mon Sep 17 00:00:00 2001 From: Satoshi Fujii Date: Fri, 15 Oct 2021 05:57:24 +0000 Subject: 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 Issue-ID: DCAEGEN2-2944 Change-Id: Iee682b62a385dfaf2ec1355e781cda9c3def23c0 --- tests/test_trapd_vnf_table.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') 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() -- cgit 1.2.3-korg