Skip to content

Commit

Permalink
modified: daemonrun_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Aug 13, 2016
1 parent 1d36615 commit c5dbc7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions daemonrun_test.go
Expand Up @@ -35,6 +35,7 @@ func TestDaemonRun(t *testing.T) {
Parent: filepath.Join(parentDir, "parent.pid"),
Child: filepath.Join(parentDir, "child.pid"),
},
Wait: 1,
}
d := &Daemon{
Config: cfg,
Expand Down Expand Up @@ -73,6 +74,9 @@ func TestDaemonRun(t *testing.T) {
}
expect(t, fmt.Sprintf("%s", d), fmt.Sprintf("%d", d.process.Pid))
d.process.Kill()
for d.process.Pid == 0 {
}
expect(t, 2, int(time.Since(d.start).Seconds()))
}
}
}

0 comments on commit c5dbc7d

Please sign in to comment.