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 tests to verify closing task in event callback does not crash or error #558

Merged

Conversation

texasaggie97
Copy link
Collaborator

What does this Pull Request accomplish?

DAQmx allows stopping and closing the task in an event callback. Test that is does not crash and behaves properly.

Why should this Pull Request be merged?

Improve test coverage

What testing has been done?

  • Local tests pass
  • PR

zhindes
zhindes previously requested changes Apr 3, 2024
Copy link
Collaborator

@zhindes zhindes left a comment

Choose a reason for hiding this comment

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

ditto my comments on the other test

tests/component/test_task_events.py Outdated Show resolved Hide resolved
tests/component/test_task_events.py Show resolved Hide resolved
@texasaggie97 texasaggie97 dismissed zhindes’s stale review April 3, 2024 17:46

Comments addressed

@texasaggie97 texasaggie97 requested a review from zhindes April 3, 2024 18:13
Copy link

github-actions bot commented Apr 3, 2024

Test Results

    34 files  ± 0      34 suites  ±0   43m 46s ⏱️ -4s
 2 248 tests + 4   1 910 ✅ + 2    338 💤 + 2  0 ❌ ±0 
39 690 runs  +40  34 134 ✅ +20  5 556 💤 +20  0 ❌ ±0 

Results for commit c29ef19. ± Comparison against base commit 3fdfbee.

♻️ This comment has been updated with latest results.

@texasaggie97 texasaggie97 merged commit 230b235 into master Apr 3, 2024
17 checks passed
@texasaggie97 texasaggie97 deleted the users/texasaggie97/test-clearing-task-in-callback branch April 3, 2024 21:17
tests/component/test_task_events.py Show resolved Hide resolved
tests/component/test_task_events.py Show resolved Hide resolved
tests/component/test_task_events.py Show resolved Hide resolved
tests/component/test_task_events.py Show resolved Hide resolved
texasaggie97 added a commit that referenced this pull request Apr 15, 2024
texasaggie97 added a commit that referenced this pull request Apr 15, 2024
* After the fact feedback from PR #558

* Raise timeout to 10 seconds
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.

3 participants