Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: assert m is not none #193

Open
tyler-suard-parker opened this issue Sep 2, 2024 · 1 comment
Open

AssertionError: assert m is not none #193

tyler-suard-parker opened this issue Sep 2, 2024 · 1 comment

Comments

@tyler-suard-parker
Copy link

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
Copy link
Collaborator

cyberw commented Sep 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants