-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement kill tests #580
implement kill tests #580
Conversation
Tested in my environment with 'runc' , it works. |
validation/kill.go
Outdated
util.WaitingForStatus(*r, util.LifecycleStatusCreated|util.LifecycleStatusStopped, time.Second*10, time.Second*1) | ||
// KILL MUST be supported and KILL cannot be trapped | ||
err := r.Kill("KILL") | ||
// wait before the container been deleted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think the next line needs a comment; util.WaitingForStatus(*r, util.LifecycleStatusStopped, ...)
is pretty clear on it's own. And if you do want a comment, you probably want "been deleted" ->"has stopped".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remove this line, updated.
Another issue I found, 'util.Fatal' exits immediately, the 'defer' functions will not be called. Add an issue to keep track of this. #582 |
validation/killsig.go
Outdated
t := tap.New() | ||
t.Header(0) | ||
bundleDir, err := util.PrepareBundle() | ||
fmt.Println(bundleDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should delete it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Signed-off-by: Liang Chenye <[email protected]>
Signed-off-by: Liang Chenye [email protected]