Skip to content

Commit 393b0be

Browse files
committed
[pyoaev] test(utils): fixing utils test (missing tenant id in log)
1 parent 1c695e2 commit 393b0be

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

test/test_utils.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,13 @@ def test_pingalive_run_and_stop(self):
250250
ping_alive.run()
251251
ping_alive.stop()
252252

253-
ping_alive.logger.info.assert_any_call("Starting PingAlive thread")
254-
ping_alive.logger.info.assert_any_call("Preparing PingAlive for clean shutdown")
253+
ping_alive.logger.info.assert_any_call(
254+
"Starting PingAlive thread", {"tenant_id": str(ping_alive.tenant_id)}
255+
)
256+
ping_alive.logger.info.assert_any_call(
257+
"Preparing PingAlive for clean shutdown",
258+
{"tenant_id": str(ping_alive.tenant_id)},
259+
)
255260
self.assertTrue(ping_alive.exit_event.is_set())
256261

257262

0 commit comments

Comments
 (0)