Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
26fea236
Unverified
Commit
26fea236
authored
Mar 20, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Mar 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #75166 from qingsenLi/k8s190308-fix-heatbeat
spelling error 'heatbeat'
parents
02387f1a
147666f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kubelet_node_status_test.go
pkg/kubelet/kubelet_node_status_test.go
+2
-2
No files found.
pkg/kubelet/kubelet_node_status_test.go
View file @
26fea236
...
@@ -939,7 +939,7 @@ func TestUpdateNodeStatusWithLease(t *testing.T) {
...
@@ -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 hea
r
tbeat 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) {
...
@@ -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 hea
r
tbeat 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
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment