mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
errcheck: libcontainer/configs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -145,12 +145,15 @@ func TestFuncHookRun(t *testing.T) {
|
||||
|
||||
fHook := configs.NewFunctionHook(func(s *specs.State) error {
|
||||
if !reflect.DeepEqual(state, s) {
|
||||
t.Errorf("Expected state %+v to equal %+v", state, s)
|
||||
return fmt.Errorf("expected state %+v to equal %+v", state, s)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
fHook.Run(state)
|
||||
err := fHook.Run(state)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCommandHookRun(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user