diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-18 21:13:14 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-19 16:12:48 +0000 |
commit | 930660c36baa4490afe26926dc8b3d3850affe48 (patch) | |
tree | 52d27611316ed8027be4832b34068c3ee5e8491a | |
parent | 6997db694acbfaa41b010879efdcdc1bf5b3dd98 (diff) | |
download | podman-930660c36baa4490afe26926dc8b3d3850affe48.tar.gz podman-930660c36baa4490afe26926dc8b3d3850affe48.tar.bz2 podman-930660c36baa4490afe26926dc8b3d3850affe48.zip |
Use `...` for a regexp constant to improve readability
Should not change behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1111
Approved by: baude
-rw-r--r-- | libpod/container_internal_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_test.go b/libpod/container_internal_test.go index 78891a672..aa28e99e3 100644 --- a/libpod/container_internal_test.go +++ b/libpod/container_internal_test.go @@ -59,7 +59,7 @@ func TestPostDeleteHooks(t *testing.T) { t.Fatal(err) } - stateRegexp := "{\"ociVersion\":\"1\\.0\\.0\",\"id\":\"123abc\",\"status\":\"stopped\",\"bundle\":\"/tmp/libpod_test_[0-9]*\",\"annotations\":{\"a\":\"b\"}}" + stateRegexp := `{"ociVersion":"1\.0\.0","id":"123abc","status":"stopped","bundle":"/tmp/libpod_test_[0-9]*","annotations":{"a":"b"}}` for _, path := range []string{statePath, copyPath} { t.Run(path, func(t *testing.T) { content, err := ioutil.ReadFile(path) |