Skip to content

Commit e062dc5

Browse files
author
Sebastian Molenda
committed
Loop
1 parent 0c48880 commit e062dc5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/unit/objects/test_objects.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ class TestObjectsIsMatchingEtag(TestCase):
1111
pubnub_asyncio: PubNubAsyncio = None
1212

1313
def setUp(self):
14+
loop = asyncio.new_event_loop()
15+
asyncio.set_event_loop(loop)
1416
self.config = PNConfiguration()
1517
self.config.publish_key = "test"
1618
self.config.subscribe_key = "test"
1719
self.config.uuid = "test"
1820
self.pubnub = PubNub(self.config)
19-
self.pubnub_asyncio = PubNubAsyncio(self.config, custom_event_loop=asyncio.new_event_loop())
21+
self.pubnub_asyncio = PubNubAsyncio(self.config)
2022
return super().setUp()
2123

2224
def test_get_all_channel_metadata(self):

0 commit comments

Comments
 (0)