Skip to content

Commit 05493c0

Browse files
Update pkg/kubelet/status/state/state_checkpoint_test.go
Co-authored-by: Tim Allclair <[email protected]>
1 parent e4c8eef commit 05493c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubelet/status/state/state_checkpoint_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func Test_stateCheckpoint_formatUpgraded(t *testing.T) {
145145

146146
// prepare old checkpoint, ResizeStatusEntries is unset,
147147
// pretend that the old checkpoint is unaware for the field ResizeStatusEntries
148-
checkpointContent := `{"data":"{\"allocationEntries\":{\"pod1\":{\"container1\":{\"requests\":{\"cpu\":\"1Ki\",\"memory\":\"1Ki\"}}}}}","checksum":1555601526}`
148+
const checkpointContent = `{"data":"{\"allocationEntries\":{\"pod1\":{\"container1\":{\"requests\":{\"cpu\":\"1Ki\",\"memory\":\"1Ki\"}}}}}","checksum":1555601526}`
149149
checkpoint := &Checkpoint{}
150150
err := checkpoint.UnmarshalCheckpoint([]byte(checkpointContent))
151151
require.NoError(t, err, "failed to unmarshal checkpoint")

0 commit comments

Comments
 (0)