Assert that only one thread is active in trytond.application

This commit is contained in:
Nicolas Évrard committed 2023-11-22 01:37:11 +01:00
1 parent 50c102a2e5
commit 300bad3f6b
1 file changed
+2
+2
View File
@@ -41,3 +41,5 @@ if db_names:
threads.append(thread)
for thread in threads:
thread.join()
assert len(threads := threading.enumerate()) == 1, f"len({threads}) != 1"