From 7f026a4d59ee64f80f86cd5ee8601e96f27bd2ad Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 11 一月 2024 15:28:55 +0800
Subject: [PATCH] 添加测试

---
 test/test_mul_queue.py |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/test/test_mul_queue.py b/test/test_mul_queue.py
index d8e6a15..9e45076 100644
--- a/test/test_mul_queue.py
+++ b/test/test_mul_queue.py
@@ -29,9 +29,19 @@
         except Exception as e:
             logging.exception(e)
 
-
 if __name__ == "__main__":
     q = multiprocessing.Queue()
+    while True:
+        try:
+            val = q.get_nowait()
+            print(val)
+        except:
+            time.sleep(0.005)
+            q.put_nowait("123123")
+            print("鍑洪敊")
+
+if __name__ == "__main__1":
+    q = multiprocessing.Queue()
     p1 = multiprocessing.Process(target=run_process1, args=(q,))
     p2 = multiprocessing.Process(target=run_process2, args=(q,))
     p3 = multiprocessing.Process(target=run_process3, args=(q,))

--
Gitblit v1.8.0