Commit 6f86cd1a authored by Crazykev's avatar Crazykev

fix wrong error return

Signed-off-by: 's avatarCrazykev <crazykev@zju.edu.cn>
parent 72207db4
...@@ -2222,7 +2222,7 @@ func (f *Framework) MatchContainerOutput( ...@@ -2222,7 +2222,7 @@ func (f *Framework) MatchContainerOutput(
} }
Logf("Output of node %q pod %q container %q: %s", podStatus.Spec.NodeName, podStatus.Name, container.Name, logs) Logf("Output of node %q pod %q container %q: %s", podStatus.Spec.NodeName, podStatus.Name, container.Name, logs)
} }
return fmt.Errorf("expected pod %q success: %v", createdPod.Name, err) return fmt.Errorf("expected pod %q success: %v", createdPod.Name, podErr)
} }
Logf("Trying to get logs from node %s pod %s container %s: %v", Logf("Trying to get logs from node %s pod %s container %s: %v",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment