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
a094a6e3
Commit
a094a6e3
authored
Oct 26, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15815 from mqliang/lister_test
Auto commit by PR queue bot
parents
bffdd242
1ce85d8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
listers_test.go
pkg/client/cache/listers_test.go
+9
-5
No files found.
pkg/client/cache/listers_test.go
View file @
a094a6e3
...
@@ -142,9 +142,11 @@ func TestStoreToReplicationControllerLister(t *testing.T) {
...
@@ -142,9 +142,11 @@ func TestStoreToReplicationControllerLister(t *testing.T) {
if
err
!=
nil
&&
c
.
expectErr
{
if
err
!=
nil
&&
c
.
expectErr
{
continue
continue
}
else
if
c
.
expectErr
{
}
else
if
c
.
expectErr
{
t
.
Fatalf
(
"Expected error, got none"
)
t
.
Error
(
"Expected error, got none"
)
continue
}
else
if
err
!=
nil
{
}
else
if
err
!=
nil
{
t
.
Fatalf
(
"Unexpected error %#v"
,
err
)
t
.
Errorf
(
"Unexpected error %#v"
,
err
)
continue
}
}
gotNames
:=
make
([]
string
,
len
(
gotControllers
))
gotNames
:=
make
([]
string
,
len
(
gotControllers
))
for
ix
:=
range
gotControllers
{
for
ix
:=
range
gotControllers
{
...
@@ -264,9 +266,11 @@ func TestStoreToDaemonSetLister(t *testing.T) {
...
@@ -264,9 +266,11 @@ func TestStoreToDaemonSetLister(t *testing.T) {
if
err
!=
nil
&&
c
.
expectErr
{
if
err
!=
nil
&&
c
.
expectErr
{
continue
continue
}
else
if
c
.
expectErr
{
}
else
if
c
.
expectErr
{
t
.
Fatalf
(
"Expected error, got none"
)
t
.
Error
(
"Expected error, got none"
)
continue
}
else
if
err
!=
nil
{
}
else
if
err
!=
nil
{
t
.
Fatalf
(
"Unexpected error %#v"
,
err
)
t
.
Errorf
(
"Unexpected error %#v"
,
err
)
continue
}
}
daemonSetNames
:=
make
([]
string
,
len
(
daemonSets
))
daemonSetNames
:=
make
([]
string
,
len
(
daemonSets
))
for
ix
:=
range
daemonSets
{
for
ix
:=
range
daemonSets
{
...
@@ -491,7 +495,7 @@ func TestStoreToPodLister(t *testing.T) {
...
@@ -491,7 +495,7 @@ func TestStoreToPodLister(t *testing.T) {
t
.
Errorf
(
"unexpected error: %v"
,
err
)
t
.
Errorf
(
"unexpected error: %v"
,
err
)
}
}
if
exists
{
if
exists
{
t
.
Error
f
(
"Unexpected pod exists"
)
t
.
Error
(
"Unexpected pod exists"
)
}
}
}
}
...
...
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