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
197fc676
Unverified
Commit
197fc676
authored
Dec 25, 2018
by
Kubernetes Prow Robot
Committed by
GitHub
Dec 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72215 from caesarxuchao/minor-test-fix
Fix the unit test patch to not modify the node name
parents
8626cb94
7223f0fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
idempotency_test.go
cmd/kubeadm/app/util/apiclient/idempotency_test.go
+3
-1
No files found.
cmd/kubeadm/app/util/apiclient/idempotency_test.go
View file @
197fc676
...
@@ -69,7 +69,9 @@ func TestPatchNodeNonErrorCases(t *testing.T) {
...
@@ -69,7 +69,9 @@ func TestPatchNodeNonErrorCases(t *testing.T) {
t
.
Fatalf
(
"failed to create node to fake client: %v"
,
err
)
t
.
Fatalf
(
"failed to create node to fake client: %v"
,
err
)
}
}
conditionFunction
:=
apiclient
.
PatchNodeOnce
(
client
,
tc
.
lookupName
,
func
(
node
*
v1
.
Node
)
{
conditionFunction
:=
apiclient
.
PatchNodeOnce
(
client
,
tc
.
lookupName
,
func
(
node
*
v1
.
Node
)
{
node
.
Name
=
"testNewNode"
node
.
Annotations
=
map
[
string
]
string
{
"updatedBy"
:
"test"
,
}
})
})
success
,
err
:=
conditionFunction
()
success
,
err
:=
conditionFunction
()
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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