Move platformInit and plugin load to server

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-06-22 13:34:37 -07:00
parent a6e77432df
commit 003ad67375
8 changed files with 78 additions and 75 deletions

View File

@@ -69,6 +69,9 @@ func TestMain(m *testing.M) {
client, err := waitForDaemonStart(ctx, address)
if err != nil {
if cmd.Process != nil {
cmd.Process.Kill()
}
cmd.Wait()
fmt.Fprintf(os.Stderr, "%s: %s", err, buf.String())
os.Exit(1)