diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-04-14 03:09:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-14 03:09:41 -0700 |
commit | f929b9e4d5a48f80810a7d0010951decbb38e47f (patch) | |
tree | 3a2029ecacea6b2da7743494a2fceef60c9e01ef /pkg/hooks/hooks_test.go | |
parent | 9acc9cd58c552c0fb20d817d3d3124610ebea01d (diff) | |
parent | 82e8453c770915d3d959b85f55b2d37a8ee5d51d (diff) | |
download | podman-f929b9e4d5a48f80810a7d0010951decbb38e47f.tar.gz podman-f929b9e4d5a48f80810a7d0010951decbb38e47f.tar.bz2 podman-f929b9e4d5a48f80810a7d0010951decbb38e47f.zip |
Merge pull request #2501 from mtrmac/fixed-hook-order
RFC: Make hooks sort order locale-independent
Diffstat (limited to 'pkg/hooks/hooks_test.go')
-rw-r--r-- | pkg/hooks/hooks_test.go | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/pkg/hooks/hooks_test.go b/pkg/hooks/hooks_test.go index 2925a99e4..02cde6d64 100644 --- a/pkg/hooks/hooks_test.go +++ b/pkg/hooks/hooks_test.go @@ -12,7 +12,6 @@ import ( current "github.com/containers/libpod/pkg/hooks/1.0.0" rspec "github.com/opencontainers/runtime-spec/specs-go" "github.com/stretchr/testify/assert" - "golang.org/x/text/language" ) // path is the path to an example hook executable. @@ -43,12 +42,7 @@ func TestGoodNew(t *testing.T) { } } - lang, err := language.Parse("und-u-va-posix") - if err != nil { - t.Fatal(err) - } - - manager, err := New(ctx, []string{dir}, []string{}, lang) + manager, err := New(ctx, []string{dir}, []string{}) if err != nil { t.Fatal(err) } @@ -110,12 +104,7 @@ func TestBadNew(t *testing.T) { t.Fatal(err) } - lang, err := language.Parse("und-u-va-posix") - if err != nil { - t.Fatal(err) - } - - _, err = New(ctx, []string{dir}, []string{}, lang) + _, err = New(ctx, []string{dir}, []string{}) if err == nil { t.Fatal("unexpected success") } |