Skip to content

Conversation

gerboland
Copy link
Contributor

Fixes #764. We were omitting to set a promised future, which caused the client to hang.

I've added a basic test to catch this behaviour for this command. Later PR will try to generalise it for the other commands.

@codecov
Copy link

codecov bot commented May 21, 2019

Codecov Report

Merging #796 into master will increase coverage by 0.4%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #796     +/-   ##
=========================================
+ Coverage   68.28%   68.69%   +0.4%     
=========================================
  Files         177      177             
  Lines        6272     6273      +1     
=========================================
+ Hits         4283     4309     +26     
+ Misses       1989     1964     -25
Impacted Files Coverage Δ
src/daemon/daemon.cpp 28.38% <20%> (+2.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e4c7d1...573861b. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented May 21, 2019

Codecov Report

Merging #796 into master will increase coverage by 0.4%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #796     +/-   ##
=========================================
+ Coverage   68.28%   68.69%   +0.4%     
=========================================
  Files         177      177             
  Lines        6272     6273      +1     
=========================================
+ Hits         4283     4309     +26     
+ Misses       1989     1964     -25
Impacted Files Coverage Δ
src/daemon/daemon.cpp 28.38% <20%> (+2.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e4c7d1...573861b. Read the comment docs.

Copy link
Contributor

@townsend2010 townsend2010 left a comment

Choose a reason for hiding this comment

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

LGTM, nice test:)

bors r+

bors bot added a commit that referenced this pull request May 21, 2019
796: Fulfil promise for restart error condition r=townsend2010 a=gerboland

Fixes #764. We were omitting to set a promised future, which caused the client to hang.

I've added a basic test to catch this behaviour for this command. Later PR will try to generalise it for the other commands.

Co-authored-by: Gerry Boland <[email protected]>
@bors
Copy link
Contributor

bors bot commented May 21, 2019

@bors bors bot merged commit 573861b into master May 21, 2019
@bors bors bot deleted the fix-restart-hang branch May 21, 2019 15:20
Saviq pushed a commit that referenced this pull request May 28, 2019
796: Fulfil promise for restart error condition r=townsend2010 a=gerboland

Fixes #764. We were omitting to set a promised future, which caused the client to hang.

I've added a basic test to catch this behaviour for this command. Later PR will try to generalise it for the other commands.

Co-authored-by: Gerry Boland <[email protected]>
Saviq pushed a commit that referenced this pull request May 28, 2019
796: Fulfil promise for restart error condition r=townsend2010 a=gerboland

Fixes #764. We were omitting to set a promised future, which caused the client to hang.

I've added a basic test to catch this behaviour for this command. Later PR will try to generalise it for the other commands.

Co-authored-by: Gerry Boland <[email protected]>
Saviq pushed a commit that referenced this pull request May 28, 2019
796: Fulfil promise for restart error condition r=townsend2010 a=gerboland

Fixes #764. We were omitting to set a promised future, which caused the client to hang.

I've added a basic test to catch this behaviour for this command. Later PR will try to generalise it for the other commands.

Co-authored-by: Gerry Boland <[email protected]>
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.

multipass blocks trying to restart a suspended instance
2 participants