Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
4541c229
Commit
4541c229
authored
Jun 09, 2015
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/filter: hack around data race in the test
parent
d652a58a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
filter_test.go
event/filter/filter_test.go
+6
-1
No files found.
event/filter/filter_test.go
View file @
4541c229
package
filter
package
filter
import
"testing"
import
(
"testing"
"time"
)
func
TestFilters
(
t
*
testing
.
T
)
{
func
TestFilters
(
t
*
testing
.
T
)
{
var
success
bool
var
success
bool
...
@@ -24,6 +27,8 @@ func TestFilters(t *testing.T) {
...
@@ -24,6 +27,8 @@ func TestFilters(t *testing.T) {
fm
.
Notify
(
Generic
{
Str1
:
"hello"
},
true
)
fm
.
Notify
(
Generic
{
Str1
:
"hello"
},
true
)
fm
.
Stop
()
fm
.
Stop
()
time
.
Sleep
(
10
*
time
.
Millisecond
)
// yield to the notifier
if
!
success
{
if
!
success
{
t
.
Error
(
"expected 'hello' to be posted"
)
t
.
Error
(
"expected 'hello' to be posted"
)
}
}
...
...
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