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
17fc371d
Commit
17fc371d
authored
Jan 27, 2017
by
deads2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix up broken tests
parent
e6e17a5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
decoder_test.go
...ing/src/k8s.io/apimachinery/pkg/util/yaml/decoder_test.go
+1
-1
clientset_generated.go
...c/k8s.io/client-go/kubernetes/fake/clientset_generated.go
+1
-1
No files found.
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder_test.go
View file @
17fc371d
...
@@ -141,7 +141,7 @@ stuff: 1
...
@@ -141,7 +141,7 @@ stuff: 1
t
.
Fatal
(
"expected error with yaml: violate, got no error"
)
t
.
Fatal
(
"expected error with yaml: violate, got no error"
)
}
}
fmt
.
Printf
(
"err: %s
\n
"
,
err
.
Error
())
fmt
.
Printf
(
"err: %s
\n
"
,
err
.
Error
())
if
!
strings
.
HasPrefix
(
err
.
Error
(),
"yaml: line 2:"
)
{
if
!
strings
.
Contains
(
err
.
Error
(),
"yaml: line 2:"
)
{
t
.
Fatalf
(
"expected %q to have 'yaml: line 2:' found a tab character"
,
err
.
Error
())
t
.
Fatalf
(
"expected %q to have 'yaml: line 2:' found a tab character"
,
err
.
Error
())
}
}
}
}
...
...
staging/src/k8s.io/client-go/kubernetes/fake/clientset_generated.go
View file @
17fc371d
...
@@ -57,7 +57,7 @@ import (
...
@@ -57,7 +57,7 @@ import (
// without applying any validations and/or defaults. It shouldn't be considered a replacement
// without applying any validations and/or defaults. It shouldn't be considered a replacement
// for a real clientset and is mostly useful in simple unit tests.
// for a real clientset and is mostly useful in simple unit tests.
func
NewSimpleClientset
(
objects
...
runtime
.
Object
)
*
Clientset
{
func
NewSimpleClientset
(
objects
...
runtime
.
Object
)
*
Clientset
{
o
:=
testing
.
NewObjectTracker
(
api
.
Scheme
,
api
.
Codecs
.
UniversalDecoder
())
o
:=
testing
.
NewObjectTracker
(
api
.
Registry
,
api
.
Scheme
,
api
.
Codecs
.
UniversalDecoder
())
for
_
,
obj
:=
range
objects
{
for
_
,
obj
:=
range
objects
{
if
err
:=
o
.
Add
(
obj
);
err
!=
nil
{
if
err
:=
o
.
Add
(
obj
);
err
!=
nil
{
panic
(
err
)
panic
(
err
)
...
...
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