-
Notifications
You must be signed in to change notification settings - Fork 48
Conversation
Codecov Report
@@ Coverage Diff @@
## master #119 +/- ##
==========================================
+ Coverage 35.55% 35.69% +0.13%
==========================================
Files 65 65
Lines 7341 7349 +8
==========================================
+ Hits 2610 2623 +13
+ Misses 4430 4425 -5
Partials 301 301
|
8cd092e
to
8d75def
Compare
Pull Request Test Coverage Report for Build 907
💛 - Coveralls |
The code is still very much scratch now, but what do you think -- if we get a kill, should we cancel the prepare context (and therefore the image download)? |
6b23ba9
to
e7e59af
Compare
@fabiokung @andrew-leung This should be ready to look at. |
@@ -260,10 +260,19 @@ no_launchguard: | |||
} | |||
r.updateStatus(ctx, titusdriver.Starting, "creating") | |||
|
|||
prepareCtx, prepareCancel := context.WithCancel(ctx) | |||
defer prepareCancel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: I think this can be moved to a single prepareCancel
call right after Prepare(...)
(and right before the if err != nil
), since it's the only place it needs to be called, regardless if Prepare failed or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metalinter complains if I do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:(
No description provided.