File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
sdk/communication/azure-communication-chat/tests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1212from azure .communication .administration import CommunicationIdentityClient
1313from azure .communication .chat .aio import (
1414 ChatClient ,
15- CommunicationTokenCredential
15+ CommunicationTokenCredential ,
16+ CommunicationTokenRefreshOptions
1617)
1718from azure .communication .chat import (
1819 ChatThreadMember ,
@@ -50,7 +51,8 @@ def setUp(self):
5051 self .new_user = self .identity_client .create_user ()
5152
5253 # create ChatClient
53- self .chat_client = ChatClient (self .endpoint , CommunicationTokenCredential (self .token ))
54+ refresh_option = CommunicationTokenRefreshOptions (self .token )
55+ self .chat_client = ChatClient (self .endpoint , CommunicationTokenCredential (refresh_option ))
5456
5557 def tearDown (self ):
5658 super (ChatThreadClientTestAsync , self ).tearDown ()
You can’t perform that action at this time.
0 commit comments