File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ async def async_test_playground(self):
1010
1111 client = Client (ssl = True )
1212
13- await client .connect ('playground.thingsdb.net' , 9400 )
13+ # await client.connect('playground.thingsdb.net', 9400)
1414 try :
15- await client .authenticate ('Fai6NmH7QYxA6WLYPdtgcy' )
15+ # await client.authenticate('Fai6NmH7QYxA6WLYPdtgcy')
1616 data = await client .query (
1717 code = '.greetings[index];' ,
1818 index = 1 ,
@@ -26,3 +26,6 @@ async def async_test_playground(self):
2626 def test_playground (self ):
2727 loop = asyncio .get_event_loop ()
2828 loop .run_until_complete (self .async_test_playground ())
29+
30+
31+ TestPlayground ().test_playground ()
Original file line number Diff line number Diff line change @@ -339,6 +339,8 @@ async def _ensure_write(
339339 is_bin : bool = False ,
340340 timeout : Optional [int ] = None
341341 ) -> asyncio .Future :
342+ if not self ._pool :
343+ raise ConnectionError ('no connection' )
342344 while True :
343345 if not self .is_connected ():
344346 logging .info ('Wait for a connection' )
You can’t perform that action at this time.
0 commit comments