Skip to content

Commit 9230d52

Browse files
committed
improve debug message
1 parent 4f6b97c commit 9230d52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/lrp/lrp_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ func testLRPCase(t *testing.T, ctx context.Context, clientPod corev1.Pod, client
175175

176176
val, errMsg, err := kubernetes.ExecCmdOnPod(ctx, cs, clientPod.Namespace, clientPod.Name, clientContainer, clientCmd, config, false)
177177
if shouldError {
178-
require.Error(t, err)
178+
require.Error(t, err, "stdout: %s, stderr: %s", string(val), string(errMsg))
179179
} else {
180-
require.NoError(t, err)
180+
require.NoError(t, err, "stdout: %s, stderr: %s", string(val), string(errMsg))
181181
}
182182

183183
require.Contains(t, string(val), expectResponse)

0 commit comments

Comments
 (0)