Skip to content

Added guard before setting result on reset future#101

Merged
AndreasBomholtz merged 6 commits intomasterfrom
check-reset-future
Jun 8, 2018
Merged

Added guard before setting result on reset future#101
AndreasBomholtz merged 6 commits intomasterfrom
check-reset-future

Conversation

@AndreasBomholtz
Copy link
Contributor

This should fix the issue #76. @titilambert Can you test this small change?

@coveralls
Copy link

Pull Request Test Coverage Report for Build 479

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 477: 0.0%
Covered Lines: 1319
Relevant Lines: 1319

💛 - Coveralls

1 similar comment
@coveralls
Copy link

Pull Request Test Coverage Report for Build 479

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 477: 0.0%
Covered Lines: 1319
Relevant Lines: 1319

💛 - Coveralls

@coveralls
Copy link

coveralls commented Feb 12, 2018

Pull Request Test Coverage Report for Build 546

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 543: 0.0%
Covered Lines: 1316
Relevant Lines: 1316

💛 - Coveralls

bellows/uart.py Outdated

self._reset_future.set_result(True)
# Make sure that the reset_future is not done
if self._reset_future.done() is not True:
Copy link
Collaborator

Choose a reason for hiding this comment

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

if not self._reset_future.done() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was just a easy way, not to rewrite the test cases. But I can just rewrite them to make them pass.

@AndreasBomholtz AndreasBomholtz merged commit 8856178 into master Jun 8, 2018
@Adminiuga Adminiuga deleted the check-reset-future branch December 26, 2019 18:47
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