Remove error from engine.New()

Without creating a root there is no way for the engine to return an
error from the new function.
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Upstream-commit: 7100ace42bda2660d1eaecb2ec096ba6753688ea
Component: engine
This commit is contained in:
Michael Crosby
2014-04-23 11:54:35 -07:00
parent e886c73325
commit d8eb119f29
7 changed files with 21 additions and 42 deletions

View File

@ -182,10 +182,8 @@ func newTestEngine(t utils.Fataler, autorestart bool, root string) *engine.Engin
}
}
os.MkdirAll(root, 0700)
eng, err := engine.New()
if err != nil {
t.Fatal(err)
}
eng := engine.New()
// Load default plugins
builtins.Register(eng)
// (This is manually copied and modified from main() until we have a more generic plugin system)