Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrallen committed Mar 30, 2022
1 parent 53d3f03 commit 3216388
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_redis_ut.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,16 +586,16 @@ def thread_listen(ret):
client.flushdb()

# Init table data
config_db.set_entry(table_name_1, test_key, test_data_1)
config_db.set_entry(table_name_2, test_key, test_data_2)
config_db.set_entry(table_name_1, test_key, test_data)
config_db.set_entry(table_name_2, test_key, test_data)

thread = multiprocessing.Process(target=thread_listen, args=(ret_data,))
thread.start()
time.sleep(5)
thread.terminate()

assert ret_data[table_name_1] == {test_key: test_data_1}
assert ret_data[table_name_2] == {test_key: test_data_2}
assert ret_data[table_name_1] == {test_key: test_data}
assert ret_data[table_name_2] == {test_key: test_data}


def test_DBConnectFailure():
Expand Down

0 comments on commit 3216388

Please sign in to comment.