Do no lint test helpers

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #229
Approved by: rhatdan
This commit is contained in:
Matthew Heon 2018-01-04 16:50:15 -05:00 committed by Atomic Bot
parent 67b6c132d8
commit 5696dfef6e
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import (
"github.com/opencontainers/runtime-tools/generate" "github.com/opencontainers/runtime-tools/generate"
) )
// nolint
func getTestContainer(id, name, locksDir string) (*Container, error) { func getTestContainer(id, name, locksDir string) (*Container, error) {
ctr := &Container{ ctr := &Container{
config: &ContainerConfig{ config: &ContainerConfig{
@ -75,6 +76,7 @@ func getTestContainer(id, name, locksDir string) (*Container, error) {
// This horrible hack tests if containers are equal in a way that should handle // This horrible hack tests if containers are equal in a way that should handle
// empty arrays being dropped to nil pointers in the spec JSON // empty arrays being dropped to nil pointers in the spec JSON
// nolint
func testContainersEqual(a, b *Container) bool { func testContainersEqual(a, b *Container) bool {
if a == nil && b == nil { if a == nil && b == nil {
return true return true