errcheck: libcontainer/configs

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2021-02-01 19:32:45 +01:00
parent a899505377
commit 7e7ff8722a
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -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) {