Skip to content

Commit 872859b

Browse files
committed
correct the sandboxId attribute in unit tests
1 parent 851d778 commit 872859b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func TestGetPodStatus(t *testing.T) {
327327
assert.Equal(t, pod.Namespace, podStatus.Namespace)
328328
assert.Equal(t, apitest.FakePodSandboxIPs, podStatus.IPs)
329329
for _, containerStatus := range podStatus.ContainerStatuses {
330-
assert.Equal(t, sandbox.Id, containerStatus.PodSandboxId)
330+
assert.Equal(t, sandbox.Id, containerStatus.PodSandboxID)
331331
}
332332
}
333333

pkg/kubelet/pod_sandbox_deleter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func Test_podSandboxDeleter_deleteSandboxesInPod(t *testing.T) {
108108
podStatus: &kubecontainer.PodStatus{
109109
ContainerStatuses: []*kubecontainer.Status{
110110
{
111-
PodSandboxId: "testsandbox1",
111+
PodSandboxID: "testsandbox1",
112112
},
113113
},
114114
SandboxStatuses: []*runtimeapi.PodSandboxStatus{

0 commit comments

Comments
 (0)