summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-01-04 11:17:16 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-01-04 14:19:59 +0100
commit8c6bbfbc42b5299e6d4ad5f8f9efa757234162db (patch)
tree38d514414c82379d3803a8c0abf8454ddc5765b3 /test
parent898f57c4c1c2abf14bc9fb000653b1e6634c10bf (diff)
downloadpodman-8c6bbfbc42b5299e6d4ad5f8f9efa757234162db.tar.gz
podman-8c6bbfbc42b5299e6d4ad5f8f9efa757234162db.tar.bz2
podman-8c6bbfbc42b5299e6d4ad5f8f9efa757234162db.zip
test: fix variable name
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/systemd_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/e2e/systemd_test.go b/test/e2e/systemd_test.go
index ce2a718df..49ab3b8ed 100644
--- a/test/e2e/systemd_test.go
+++ b/test/e2e/systemd_test.go
@@ -13,10 +13,10 @@ import (
var _ = Describe("Podman systemd", func() {
var (
- tempdir string
- err error
- podmanTest *PodmanTestIntegration
- systemd_unit_file string
+ tempdir string
+ err error
+ podmanTest *PodmanTestIntegration
+ systemdUnitFile string
)
BeforeEach(func() {
@@ -27,7 +27,7 @@ var _ = Describe("Podman systemd", func() {
podmanTest = PodmanTestCreate(tempdir)
podmanTest.Setup()
podmanTest.SeedImages()
- systemd_unit_file = `[Unit]
+ systemdUnitFile = `[Unit]
Description=redis container
[Service]
Restart=always
@@ -50,7 +50,7 @@ WantedBy=multi-user.target
SkipIfRootless("rootless can not write to /etc")
SkipIfContainerized("test does not have systemd as pid 1")
- sys_file := ioutil.WriteFile("/etc/systemd/system/redis.service", []byte(systemd_unit_file), 0644)
+ sys_file := ioutil.WriteFile("/etc/systemd/system/redis.service", []byte(systemdUnitFile), 0644)
Expect(sys_file).To(BeNil())
defer func() {
stop := SystemExec("bash", []string{"-c", "systemctl stop redis"})