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/monitor_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/monitor_test.go')
-rw-r--r-- | pkg/hooks/monitor_test.go | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/pkg/hooks/monitor_test.go b/pkg/hooks/monitor_test.go index b3af4bb43..31d7f9e39 100644 --- a/pkg/hooks/monitor_test.go +++ b/pkg/hooks/monitor_test.go @@ -11,7 +11,6 @@ import ( rspec "github.com/opencontainers/runtime-spec/specs-go" "github.com/stretchr/testify/assert" - "golang.org/x/text/language" ) func TestMonitorOneDirGood(t *testing.T) { @@ -22,12 +21,7 @@ func TestMonitorOneDirGood(t *testing.T) { } defer os.RemoveAll(dir) - 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) } @@ -132,12 +126,7 @@ func TestMonitorTwoDirGood(t *testing.T) { } defer os.RemoveAll(fallbackDir) - lang, err := language.Parse("und-u-va-posix") - if err != nil { - t.Fatal(err) - } - - manager, err := New(ctx, []string{fallbackDir, primaryDir}, []string{}, lang) + manager, err := New(ctx, []string{fallbackDir, primaryDir}, []string{}) if err != nil { t.Fatal(err) } @@ -312,12 +301,7 @@ func TestMonitorTwoDirGood(t *testing.T) { func TestMonitorBadWatcher(t *testing.T) { ctx := context.Background() - lang, err := language.Parse("und-u-va-posix") - if err != nil { - t.Fatal(err) - } - - manager, err := New(ctx, []string{}, []string{}, lang) + manager, err := New(ctx, []string{}, []string{}) if err != nil { t.Fatal(err) } |