summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorMatus Valo <matusvalo@gmail.com>2021-08-29 18:57:21 +0200
committerAsif Saif Uddin <auvipy@gmail.com>2021-08-30 14:02:20 +0600
commit7230665e5cd82c3e1b17dc9f5e16dce085994673 (patch)
treed530d0245ee9b478d2271856ea23c88904c3ab4d /t
parent24b0820d0bddcad074209cc1381d92d17207448c (diff)
downloadkombu-7230665e5cd82c3e1b17dc9f5e16dce085994673.tar.gz
Make BrokerState Transport specific
Diffstat (limited to 't')
-rw-r--r--t/unit/transport/virtual/test_base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/unit/transport/virtual/test_base.py b/t/unit/transport/virtual/test_base.py
index 1a079a36..681841a0 100644
--- a/t/unit/transport/virtual/test_base.py
+++ b/t/unit/transport/virtual/test_base.py
@@ -550,6 +550,13 @@ class test_Transport:
def setup(self):
self.transport = client().transport
+ def test_state_is_transport_specific(self):
+ # Tests that each Transport of Connection instance
+ # has own state attribute
+ conn1 = client()
+ conn2 = client()
+ assert conn1.transport.state != conn2.transport.state
+
def test_custom_polling_interval(self):
x = client(transport_options={'polling_interval': 32.3})
assert x.transport.polling_interval == 32.3