summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-06-25 10:10:57 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-06-25 11:10:50 -0400
commit101a5cd7556433f81238032bf9c44bbbb6b4cabc (patch)
tree482b3f7b3ffb389a0b15205a20194bae39a00da2 /test
parent79d835457da1b3498c355f0200b7d02d1069415f (diff)
downloadpodman-101a5cd7556433f81238032bf9c44bbbb6b4cabc.tar.gz
podman-101a5cd7556433f81238032bf9c44bbbb6b4cabc.tar.bz2
podman-101a5cd7556433f81238032bf9c44bbbb6b4cabc.zip
Use a different method to retrieve YAML output in tests
OutputToString() was mangling newlines, which made YAML parsers very, very angry. But not angry enough to actually error, that would be too easy. Just angry enough to silently not decode anything. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/generate_kube_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/generate_kube_test.go b/test/e2e/generate_kube_test.go
index 7871546c7..a51b42d9a 100644
--- a/test/e2e/generate_kube_test.go
+++ b/test/e2e/generate_kube_test.go
@@ -133,7 +133,7 @@ var _ = Describe("Podman generate kube", func() {
Expect(kube.ExitCode()).To(Equal(0))
pod := new(v1.Pod)
- err := yaml.Unmarshal([]byte(kube.OutputToString()), pod)
+ err := yaml.Unmarshal(kube.Out.Contents(), pod)
Expect(err).To(BeNil())
foundPort4000 := 0