windows: Create init process with task

This prevents `task.Wait()` to return an error if it is called before the task
is started.

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure
2017-10-06 13:38:08 -07:00
parent ad5266456c
commit cfa87567a0
4 changed files with 25 additions and 9 deletions

View File

@@ -203,9 +203,9 @@ func TestContainerOutput(t *testing.T) {
}
status := <-statusC
code, _, _ := status.Result()
code, _, err := status.Result()
if code != 0 {
t.Errorf("expected status 0 but received %d", code)
t.Errorf("expected status 0 but received %d: %v", code, err)
}
if _, err := task.Delete(ctx); err != nil {
t.Error(err)