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
c4479c5b
Commit
c4479c5b
authored
Apr 21, 2016
by
Isaac Hollander McCreery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gofmt and add comment about waitForReadyOrDone
parent
27fb17e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
chaosmonkey.go
test/e2e/chaosmonkey/chaosmonkey.go
+4
-1
No files found.
test/e2e/chaosmonkey/chaosmonkey.go
View file @
c4479c5b
...
@@ -91,6 +91,9 @@ func (cm *chaosmonkey) Do() {
...
@@ -91,6 +91,9 @@ func (cm *chaosmonkey) Do() {
By
(
"Waiting for all async tests to be ready"
)
By
(
"Waiting for all async tests to be ready"
)
for
_
,
sem
:=
range
sems
{
for
_
,
sem
:=
range
sems
{
// Wait for test to be ready. We have to wait for ready *or done* because a test
// may panic before signaling that its ready, and we shouldn't block. Since we
// defered sem.done() above, if a test panics, it's marked as done.
sem
.
waitForReadyOrDone
()
sem
.
waitForReadyOrDone
()
}
}
...
@@ -115,7 +118,7 @@ type Semaphore struct {
...
@@ -115,7 +118,7 @@ type Semaphore struct {
func
newSemaphore
(
stopCh
<-
chan
struct
{})
*
Semaphore
{
func
newSemaphore
(
stopCh
<-
chan
struct
{})
*
Semaphore
{
// We don't want to block on Ready() or done()
// We don't want to block on Ready() or done()
return
&
Semaphore
{
return
&
Semaphore
{
make
(
chan
struct
{},
1
),
make
(
chan
struct
{},
1
),
stopCh
,
stopCh
,
make
(
chan
struct
{},
1
),
make
(
chan
struct
{},
1
),
...
...
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