Skip to content

Commit

Permalink
Merge pull request firecracker-microvm#35 from xibz/issue_33
Browse files Browse the repository at this point in the history
ensure tests have stopped VM upon completion
  • Loading branch information
xibz authored Dec 6, 2018
2 parents c52148e + 01a168e commit 8b22e08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/firectl/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ func TestLogFiles(t *testing.T) {
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
defer m.StopVMM()

_, err = m.Init(ctx)
if err != nil {
t.Fatalf("unexpected error: %v", err)
Expand Down
1 change: 1 addition & 0 deletions machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func TestStartVMM(t *testing.T) {
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
defer m.StopVMM()

timeout, cancel := context.WithTimeout(ctx, 250*time.Millisecond)
defer cancel()
Expand Down

0 comments on commit 8b22e08

Please sign in to comment.