Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
6d0aae55
Commit
6d0aae55
authored
Dec 23, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
74905116
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
go/internal/xtracing/tracetest/example_test.go
go/internal/xtracing/tracetest/example_test.go
+1
-1
go/internal/xtracing/tracetest/tracetest.go
go/internal/xtracing/tracetest/tracetest.go
+2
-2
No files found.
go/internal/xtracing/tracetest/example_test.go
View file @
6d0aae55
...
...
@@ -106,7 +106,7 @@ func TestTracetestExample(t *testing.T) {
}()
// assert that events come as expected
t
.
Expect
(
"t
2"
,
eventHello
(
"T2·C"
))
t
.
Expect
(
"t
3"
,
eventHi
(
"T2·C"
))
t
.
Expect
(
"t1"
,
eventHi
(
"T1·A"
))
t
.
Expect
(
"t1"
,
eventHello
(
"T1·B"
))
...
...
go/internal/xtracing/tracetest/tracetest.go
View file @
6d0aae55
...
...
@@ -493,7 +493,7 @@ type T struct {
testing
.
TB
streamTabMu
sync
.
Mutex
streamTab
map
[
/*stream*/
string
]
Chan
streamTab
map
[
/*stream*/
string
]
Chan
// set to nil on test shutdown
routeEvent
func
(
event
interface
{})
(
stream
string
)
nakq
[]
nak
// naks queued to be sent after Fatal
...
...
@@ -651,7 +651,7 @@ func (t *T) xget1(stream string, eventp interface{}) *Msg {
case
<-
time
.
After
(
*
deadTime
)
:
//t.deadlock(stream, eventp)
t
.
Fatalf
(
"%s: deadlock waiting for %T
\n
"
,
stream
,
eventp
)
t
.
Fatalf
(
"%s:
recv:
deadlock waiting for %T
\n
"
,
stream
,
eventp
)
}
reventp
:=
reflect
.
ValueOf
(
eventp
)
...
...
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