Skip to content

Commit

Permalink
Merge pull request eclipse#200 from linussieweke/stresstest_fix
Browse files Browse the repository at this point in the history
fixed stress test eclipse#197
  • Loading branch information
wenwenchenbosch authored Jun 2, 2021
2 parents abdffdb + d59bfb3 commit ae9431c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/stresstest/config.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[vss]
server=ws://localhost:8090
jwttoken=jwt.token
jwttoken=../../kuksa_certificates/jwt/all-read-write.json.token
timout=0.1
5 changes: 2 additions & 3 deletions test/stresstest/websocketconnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from threading import Thread
import websockets


class vssclient:
def __init__(self, uri, token):
self.uri=uri
Expand Down Expand Up @@ -42,7 +41,7 @@ async def connect(self, uri,loop):
async def authorize(self):
print("Authorize")
auth={}
auth['requestId']=1
auth['requestId']=str(1)
auth['action']="authorize"
auth['tokens']=self.token

Expand Down Expand Up @@ -76,7 +75,7 @@ async def handleResponse(self,ws):

def push(self,path,value):
req={}
req['requestId']=self.request
req['requestId']=str(self.request)
self.request+=1
req['action']="set"
req['path']=path
Expand Down

0 comments on commit ae9431c

Please sign in to comment.