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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user