mirror of
https://github.com/containers/podman.git
synced 2025-05-31 15:42:48 +08:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user