Skip to content

Conversation

allenporter
Copy link
Contributor

@allenporter allenporter commented Jan 21, 2025

Update the class hierarchy for queue_timeout so that it is only set in the base classes. Right now it is passed up through the constructors, but sometimes uses the default arguments and get overwritten. This is an example of the problems with having multiple inheritance.

Issue #228

Update the tests to set a timeout of 10 up from 4 to see if it helps the tests be more resilient to slowness.

@allenporter
Copy link
Contributor Author

allenporter commented Jan 21, 2025

I think there is a bug in the queue timeout code. "roborock.exceptions.RoborockTimeout: id=0 Timeout after 4 seconds" as it doesn't seem to respect constructor arguments.

Edit: Fixed the constructors to stop propagating the queue timeout everywhere and instead just set it in the 3 clients impls

@allenporter allenporter changed the title test: set queue timeout of 10 fix: fix queue timeout variable and set default in tests of 10 seconds Jan 21, 2025
@allenporter allenporter marked this pull request as draft January 21, 2025 07:17
@allenporter allenporter marked this pull request as ready for review January 21, 2025 15:25
@allenporter allenporter requested a review from Lash-L January 21, 2025 15:31
@allenporter allenporter merged commit 9c75e3a into Python-roborock:main Jan 21, 2025
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants