Skip to content

Commit

Permalink
nil guard
Browse files Browse the repository at this point in the history
  • Loading branch information
izumin5210 committed Apr 12, 2018
1 parent e2dba4a commit 59dd2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _tests/integration/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func Test_Integration(t *testing.T) {
t.Fatalf("Unexpected error: %v", err)
}
defer func() {
if !cmd.ProcessState.Exited() {
if cmd.Process != nil && cmd.ProcessState != nil && !cmd.ProcessState.Exited() {
cmd.Process.Kill()
}
}()
Expand Down

0 comments on commit 59dd2b4

Please sign in to comment.