mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
errcheck: libcontainer/nsenter
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -84,7 +84,7 @@ func TestNsenterValidPaths(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("%v", err)
|
||||
}
|
||||
p.Wait()
|
||||
_, _ = p.Wait()
|
||||
}
|
||||
|
||||
func TestNsenterInvalidPaths(t *testing.T) {
|
||||
@@ -179,8 +179,10 @@ func TestNsenterChildLogging(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create log pipe %v", err)
|
||||
}
|
||||
defer logread.Close()
|
||||
defer logwrite.Close()
|
||||
defer func() {
|
||||
_ = logwrite.Close()
|
||||
_ = logread.Close()
|
||||
}()
|
||||
|
||||
namespaces := []string{
|
||||
// join pid ns of the current process
|
||||
|
||||
Reference in New Issue
Block a user