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

Bad file descriptor on vanilla run of test suite #67

Open
bschwind opened this issue Aug 15, 2020 · 0 comments
Open

Bad file descriptor on vanilla run of test suite #67

bschwind opened this issue Aug 15, 2020 · 0 comments

Comments

@bschwind
Copy link

I'm attempting to test my broker first for V311 conformance, then later I'll do V5. I'm not even sure if I should be trying to conform to these tests or not, but that's another discussion...

Running python3 client_test.py throws out some errors:

$ python3 client_test.py     
hostname localhost port 1883
clean up starting
clean up finished
Basic test starting
Basic test succeeded
.$ topics test starting
ERROR:root:receive: unexpected exception (<class 'OSError'>, OSError(9, 'Bad file descriptor'), <traceback object at 0x10ae61080>)
$ topics test succeeded
.Keepalive test starting

Is this intentional? If I add a aclient.disconnect() after the testBasic succeeds (right before it prints out that it succeeded), then the issue seems to go away. I'm curious why global variables were chosen for the clients and callbacks, as side effects in one test can affect another if things aren't cleaned up properly. Is this repo still maintained, or is there some newer suite I should be referring to?

OS Details:

MacOS 10.15.5
Python version: Python 3.8.5

I ran this against my own broker and mosquitto, both exhibited the same issue.

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

1 participant