mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Merge pull request #75166 from qingsenLi/k8s190308-fix-heatbeat
spelling error 'heatbeat'
This commit is contained in:
commit
26fea2361a
@ -939,7 +939,7 @@ func TestUpdateNodeStatusWithLease(t *testing.T) {
|
|||||||
assert.Equal(t, v1.NodeReady, updatedNode.Status.Conditions[len(updatedNode.Status.Conditions)-1].Type,
|
assert.Equal(t, v1.NodeReady, updatedNode.Status.Conditions[len(updatedNode.Status.Conditions)-1].Type,
|
||||||
"NodeReady should be the last condition")
|
"NodeReady should be the last condition")
|
||||||
|
|
||||||
// Update node status again when nothing is changed (except heatbeat time).
|
// Update node status again when nothing is changed (except heartbeat time).
|
||||||
// Report node status if it has exceeded the duration of nodeStatusReportFrequency.
|
// Report node status if it has exceeded the duration of nodeStatusReportFrequency.
|
||||||
clock.Step(time.Minute)
|
clock.Step(time.Minute)
|
||||||
assert.NoError(t, kubelet.updateNodeStatus())
|
assert.NoError(t, kubelet.updateNodeStatus())
|
||||||
@ -964,7 +964,7 @@ func TestUpdateNodeStatusWithLease(t *testing.T) {
|
|||||||
}
|
}
|
||||||
assert.True(t, apiequality.Semantic.DeepEqual(expectedNode, updatedNode), "%s", diff.ObjectDiff(expectedNode, updatedNode))
|
assert.True(t, apiequality.Semantic.DeepEqual(expectedNode, updatedNode), "%s", diff.ObjectDiff(expectedNode, updatedNode))
|
||||||
|
|
||||||
// Update node status again when nothing is changed (except heatbeat time).
|
// Update node status again when nothing is changed (except heartbeat time).
|
||||||
// Do not report node status if it is within the duration of nodeStatusReportFrequency.
|
// Do not report node status if it is within the duration of nodeStatusReportFrequency.
|
||||||
clock.Step(10 * time.Second)
|
clock.Step(10 * time.Second)
|
||||||
assert.NoError(t, kubelet.updateNodeStatus())
|
assert.NoError(t, kubelet.updateNodeStatus())
|
||||||
|
Loading…
Reference in New Issue
Block a user