SvenskaSpel / locust-plugins

A set of useful plugins/extensions for Locust
Apache License 2.0
545 stars 139 forks source link

AssertionError: assert m is not none #193

Open tyler-suard-parker opened 1 week ago

tyler-suard-parker commented 1 week ago

locustfile.py", line 15, in my_task self.send( Lib\site-packages\locust_plugins\users\socketio.py", line 98, in send assert m is not None ^^^^^^^^^^^^^ AssertionError

It seems the issue is in this line of code here:

m = re.search(r'(\d)["([a-z])"', body)

I already have a format that I need to follow for the websocket server I am testing. Why are you enforcing a different format?

cyberw commented 1 week ago

I built this for a very specific use case a long time ago. Feel free to override this function (or even suggeste a better implementation in a PR). I'm not using it atm.