Skip to content

Commit ef75900

Browse files
author
Zhou Hao
committed
validation/kill_no_effect: fix bug
Signed-off-by: Zhou Hao <[email protected]>
1 parent 0f65c57 commit ef75900

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: validation/kill_no_effect.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ func main() {
2424

2525
targetErr := specerror.NewError(specerror.KillNonCreateRunHaveNoEffect, fmt.Errorf("attempting to send a signal to a container that is neither `created` nor `running` MUST have no effect on the container"), rspecs.Version)
2626
containerID := uuid.NewV4().String()
27-
g := util.GetDefaultGenerator()
27+
g, err := util.GetDefaultGenerator()
28+
if err != nil {
29+
util.Fatal(err)
30+
}
2831
g.SetProcessArgs([]string{"true"})
2932

3033
config := util.LifecycleConfig{

0 commit comments

Comments
 (0)