summaryrefslogtreecommitdiff
path: root/libpod/container_internal_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-04-14 03:09:41 -0700
committerGitHub <noreply@github.com>2019-04-14 03:09:41 -0700
commitf929b9e4d5a48f80810a7d0010951decbb38e47f (patch)
tree3a2029ecacea6b2da7743494a2fceef60c9e01ef /libpod/container_internal_test.go
parent9acc9cd58c552c0fb20d817d3d3124610ebea01d (diff)
parent82e8453c770915d3d959b85f55b2d37a8ee5d51d (diff)
downloadpodman-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 'libpod/container_internal_test.go')
-rw-r--r--libpod/container_internal_test.go48
1 files changed, 0 insertions, 48 deletions
diff --git a/libpod/container_internal_test.go b/libpod/container_internal_test.go
index 1654af929..f1e2b70a7 100644
--- a/libpod/container_internal_test.go
+++ b/libpod/container_internal_test.go
@@ -17,54 +17,6 @@ import (
// hookPath is the path to an example hook executable.
var hookPath string
-func TestLocaleToLanguage(t *testing.T) {
- for _, testCase := range []struct {
- locale string
- language string
- }{
- {
- locale: "",
- language: "und-u-va-posix",
- },
- {
- locale: "C",
- language: "und-u-va-posix",
- },
- {
- locale: "POSIX",
- language: "und-u-va-posix",
- },
- {
- locale: "c",
- language: "und-u-va-posix",
- },
- {
- locale: "en",
- language: "en",
- },
- {
- locale: "en_US",
- language: "en-US",
- },
- {
- locale: "en.UTF-8",
- language: "en",
- },
- {
- locale: "en_US.UTF-8",
- language: "en-US",
- },
- {
- locale: "does-not-exist",
- language: "does-not-exist",
- },
- } {
- t.Run(testCase.locale, func(t *testing.T) {
- assert.Equal(t, testCase.language, localeToLanguage(testCase.locale))
- })
- }
-}
-
func TestPostDeleteHooks(t *testing.T) {
ctx := context.Background()
dir, err := ioutil.TempDir("", "libpod_test_")