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
be8d0815
Commit
be8d0815
authored
Jul 23, 2016
by
lixiaobing10051267
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check all places to break the loop when object found
parent
0e8d5152
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
0 deletions
+5
-0
policy_comparator_test.go
pkg/apis/rbac/validation/policy_comparator_test.go
+1
-0
fixture.go
pkg/client/testing/core/fixture.go
+1
-0
pet_set_test.go
pkg/controller/petset/pet_set_test.go
+1
-0
builder_test.go
pkg/kubectl/resource/builder_test.go
+1
-0
docker_manager_test.go
pkg/kubelet/dockertools/docker_manager_test.go
+1
-0
No files found.
pkg/apis/rbac/validation/policy_comparator_test.go
View file @
be8d0815
...
...
@@ -389,6 +389,7 @@ func rulesMatch(expectedRules, actualRules []rbac.PolicyRule) bool {
for
_
,
actualRule
:=
range
actualRules
{
if
reflect
.
DeepEqual
(
expectedRule
,
actualRule
)
{
found
=
true
break
}
}
...
...
pkg/client/testing/core/fixture.go
View file @
be8d0815
...
...
@@ -350,6 +350,7 @@ func (t *tracker) Delete(gvk unversioned.GroupVersionKind, ns, name string) erro
if
objMeta
.
GetNamespace
()
==
ns
&&
objMeta
.
GetName
()
==
name
{
t
.
objects
[
gvk
]
=
append
(
t
.
objects
[
gvk
][
:
i
],
t
.
objects
[
gvk
][
i
+
1
:
]
...
)
found
=
true
break
}
}
...
...
pkg/controller/petset/pet_set_test.go
View file @
be8d0815
...
...
@@ -219,6 +219,7 @@ func TestPetSetControllerBlocksScaling(t *testing.T) {
for
_
,
p
:=
range
fc
.
getPodList
()
{
if
p
.
Name
==
deletedPod
.
Name
{
found
=
true
break
}
}
if
!
found
{
...
...
pkg/kubectl/resource/builder_test.go
View file @
be8d0815
...
...
@@ -445,6 +445,7 @@ func TestDirectoryBuilder(t *testing.T) {
for
_
,
info
:=
range
test
.
Infos
{
if
info
.
Name
==
"redis-master"
&&
info
.
Namespace
==
"test"
&&
info
.
Object
!=
nil
{
found
=
true
break
}
}
if
!
found
{
...
...
pkg/kubelet/dockertools/docker_manager_test.go
View file @
be8d0815
...
...
@@ -613,6 +613,7 @@ func TestSyncPodCreateNetAndContainer(t *testing.T) {
for
_
,
c
:=
range
fakeDocker
.
RunningContainerList
{
if
c
.
Image
==
"pod_infra_image"
&&
strings
.
HasPrefix
(
c
.
Names
[
0
],
"/k8s_POD"
)
{
found
=
true
break
}
}
if
!
found
{
...
...
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