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

add basic loop() test #172

Merged
merged 2 commits into from
Jul 28, 2023
Merged

add basic loop() test #172

merged 2 commits into from
Jul 28, 2023

Conversation

vladak
Copy link
Contributor

@vladak vladak commented Jul 24, 2023

Since finishing PR #169, I have been thinking about at least simple test for the loop() return semantics. Here it is.

There is some room for improvement (like always). Specifically, there are other aspects of the function that could be tested (such as MQTT ping) and also if loop() was not cooperating (by returning within some time), the test would be hosed.

Copy link
Member

@tekktrik tekktrik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test code is best code! And more tests are always good, if you do end up making more.

@tekktrik tekktrik merged commit 89637ed into adafruit:main Jul 28, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 28, 2023
Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 3.0.0 from 2.28.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#191 from FoamyGuy/blit_refactor

Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 7.4.1 from 7.4.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#172 from vladak/test_loop

Updating https://github.com/adafruit/Adafruit_CircuitPython_PIOASM to 0.7.11 from 0.7.10:
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#58 from jepler/fix-example-pio-kwargs

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
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