81ba992e3e
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:saltstack/salt?expand=0&rev=205
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 4cc528dadfbffdeb90df41bbd848d0c2c7efec78 Mon Sep 17 00:00:00 2001
|
|
From: Alexander Graul <agraul@suse.com>
|
|
Date: Tue, 12 Jul 2022 14:02:58 +0200
|
|
Subject: [PATCH] Fix test_ipc unit tests
|
|
|
|
---
|
|
tests/unit/transport/test_ipc.py | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/tests/unit/transport/test_ipc.py b/tests/unit/transport/test_ipc.py
|
|
index 4a0a7c29e2..af001d9650 100644
|
|
--- a/tests/unit/transport/test_ipc.py
|
|
+++ b/tests/unit/transport/test_ipc.py
|
|
@@ -105,8 +105,8 @@ class IPCMessagePubSubCase(salt.ext.tornado.testing.AsyncTestCase):
|
|
self.stop()
|
|
|
|
# Now let both waiting data at once
|
|
- client1.read_async(handler)
|
|
- client2.read_async(handler)
|
|
+ client1.read_async()
|
|
+ client2.read_async()
|
|
self.pub_channel.publish("TEST")
|
|
self.wait()
|
|
self.assertEqual(len(call_cnt), 2)
|
|
@@ -148,7 +148,7 @@ class IPCMessagePubSubCase(salt.ext.tornado.testing.AsyncTestCase):
|
|
pass
|
|
|
|
try:
|
|
- ret1 = yield client1.read_async(handler)
|
|
+ ret1 = yield client1.read_async()
|
|
self.wait()
|
|
except StreamClosedError as ex:
|
|
assert False, "StreamClosedError was raised inside the Future"
|
|
--
|
|
2.37.3
|
|
|
|
|