diff options
author | Ed Santiago <santiago@redhat.com> | 2021-11-23 11:12:34 -0700 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2021-11-29 08:30:00 -0700 |
commit | b63d696405593d056cce850e1503a6bef17c2cf8 (patch) | |
tree | 77aa079636ea326eec76520734e0ae9e815ca6c2 /test/utils/common_function_test.go | |
parent | 3d19f1a7fac5705518693cad3f2c7f94dcc2f1d4 (diff) | |
download | podman-b63d696405593d056cce850e1503a6bef17c2cf8.tar.gz podman-b63d696405593d056cce850e1503a6bef17c2cf8.tar.bz2 podman-b63d696405593d056cce850e1503a6bef17c2cf8.zip |
e2e tests: enable golint
...and fix problems found therewith.
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/utils/common_function_test.go')
-rw-r--r-- | test/utils/common_function_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/utils/common_function_test.go b/test/utils/common_function_test.go index 003d490ce..c996a302c 100644 --- a/test/utils/common_function_test.go +++ b/test/utils/common_function_test.go @@ -90,24 +90,24 @@ var _ = Describe("Common functions test", func() { Entry("Command exist", "Fakecmd", false), ) - It("Test WriteJsonFile", func() { - type testJson struct { + It("Test WriteJSONFile", func() { + type testJSON struct { Item1 int Item2 []string } - compareData := &testJson{} + compareData := &testJSON{} - testData := &testJson{ + testData := &testJSON{ Item1: 5, Item2: []string{"test"}, } testByte, _ := json.Marshal(testData) - err := WriteJsonFile(testByte, "/tmp/testJson") + err := WriteJSONFile(testByte, "/tmp/testJSON") Expect(err).To(BeNil(), "Failed to write JSON to file.") - read, err := os.Open("/tmp/testJson") + read, err := os.Open("/tmp/testJSON") defer read.Close() Expect(err).To(BeNil(), "Can not find the JSON file after we write it.") |