Address comments.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2018-04-09 18:11:57 +00:00
parent b2099c2061
commit d8a3c5f254
5 changed files with 24 additions and 15 deletions

View File

@@ -23,6 +23,7 @@ import (
// FakeCNIPlugin is a fake plugin used for test.
type FakeCNIPlugin struct {
StatusErr error
LoadErr error
}
// NewFakeCNIPlugin create a FakeCNIPlugin.
@@ -47,5 +48,5 @@ func (f *FakeCNIPlugin) Status() error {
// Load loads the network config.
func (f *FakeCNIPlugin) Load(opts ...cni.LoadOption) error {
return nil
return f.LoadErr
}