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
fa9339d9
Commit
fa9339d9
authored
Sep 01, 2015
by
Daniel Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13475 from lavalamp/proxyTimeout
Increase timeout to fix flaky tests
parents
f7123ac8
46ae7e87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
proxier_test.go
pkg/proxy/userspace/proxier_test.go
+2
-2
No files found.
pkg/proxy/userspace/proxier_test.go
View file @
fa9339d9
...
@@ -200,12 +200,12 @@ func testEchoUDP(t *testing.T, address string, port int) {
...
@@ -200,12 +200,12 @@ func testEchoUDP(t *testing.T, address string, port int) {
func
waitForNumProxyLoops
(
t
*
testing
.
T
,
p
*
Proxier
,
want
int32
)
{
func
waitForNumProxyLoops
(
t
*
testing
.
T
,
p
*
Proxier
,
want
int32
)
{
var
got
int32
var
got
int32
for
i
:=
0
;
i
<
4
;
i
++
{
for
i
:=
0
;
i
<
600
;
i
++
{
got
=
atomic
.
LoadInt32
(
&
p
.
numProxyLoops
)
got
=
atomic
.
LoadInt32
(
&
p
.
numProxyLoops
)
if
got
==
want
{
if
got
==
want
{
return
return
}
}
time
.
Sleep
(
5
00
*
time
.
Millisecond
)
time
.
Sleep
(
1
00
*
time
.
Millisecond
)
}
}
t
.
Errorf
(
"expected %d ProxyLoops running, got %d"
,
want
,
got
)
t
.
Errorf
(
"expected %d ProxyLoops running, got %d"
,
want
,
got
)
}
}
...
...
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