mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Add check for unmarshalling onto a Pod object type
This commit is contained in:
parent
c6a86b5fed
commit
cb7835bcb0
@ -946,7 +946,8 @@ var _ = framework.KubeDescribe("Pods", func() {
|
||||
podStatusBytes, err := json.Marshal(podStatusUnstructured)
|
||||
framework.ExpectNoError(err, "failed to marshal unstructured response")
|
||||
var podStatus v1.Pod
|
||||
json.Unmarshal(podStatusBytes, &podStatus)
|
||||
err = json.Unmarshal(podStatusBytes, &podStatus)
|
||||
framework.ExpectNoError(err, "failed to unmarshal JSON bytes to a Pod object type")
|
||||
|
||||
ginkgo.By("replacing the Pod's status Ready condition to False")
|
||||
podStatusUpdated := podStatus
|
||||
|
Loading…
Reference in New Issue
Block a user