mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Update pkg/kubelet/status/state/state_checkpoint_test.go
Co-authored-by: Tim Allclair <timallclair@gmail.com>
This commit is contained in:
parent
e4c8eefeb2
commit
05493c0924
@ -145,7 +145,7 @@ func Test_stateCheckpoint_formatUpgraded(t *testing.T) {
|
|||||||
|
|
||||||
// prepare old checkpoint, ResizeStatusEntries is unset,
|
// prepare old checkpoint, ResizeStatusEntries is unset,
|
||||||
// pretend that the old checkpoint is unaware for the field ResizeStatusEntries
|
// pretend that the old checkpoint is unaware for the field ResizeStatusEntries
|
||||||
checkpointContent := `{"data":"{\"allocationEntries\":{\"pod1\":{\"container1\":{\"requests\":{\"cpu\":\"1Ki\",\"memory\":\"1Ki\"}}}}}","checksum":1555601526}`
|
const checkpointContent = `{"data":"{\"allocationEntries\":{\"pod1\":{\"container1\":{\"requests\":{\"cpu\":\"1Ki\",\"memory\":\"1Ki\"}}}}}","checksum":1555601526}`
|
||||||
checkpoint := &Checkpoint{}
|
checkpoint := &Checkpoint{}
|
||||||
err := checkpoint.UnmarshalCheckpoint([]byte(checkpointContent))
|
err := checkpoint.UnmarshalCheckpoint([]byte(checkpointContent))
|
||||||
require.NoError(t, err, "failed to unmarshal checkpoint")
|
require.NoError(t, err, "failed to unmarshal checkpoint")
|
||||||
|
Loading…
Reference in New Issue
Block a user