tests: add websocket capacity test

This commit is contained in:
Jacob Plaster
2019-06-18 14:42:35 +08:00
committed by Jacob Plaster
parent 13e7d505f8
commit 286e922eb1
4 changed files with 77 additions and 14 deletions

View File

@@ -17,9 +17,6 @@ class StubbedWebsocket(BfxWebsocket):
async def _main(self, host):
print ("Faking wesocket connection to {}".format(host))
def get_ws(self):
return self
async def publish(self, data, is_json=True):
self.published_items += [{
'time': get_now(),