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
5b07254a
Commit
5b07254a
authored
Dec 23, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9de249df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
go/internal/xtracing/tracetest/tracetest.go
go/internal/xtracing/tracetest/tracetest.go
+4
-3
No files found.
go/internal/xtracing/tracetest/tracetest.go
View file @
5b07254a
...
...
@@ -528,7 +528,7 @@ func (t *T) RxEvent(event interface{}) {
t
.
streamTabMu
.
Unlock
()
if
ch
==
nil
{
t
.
fatalfInNonMain
(
"test
is no longer running
"
)
t
.
fatalfInNonMain
(
"test
failed
"
)
}
// TODO it is possible to empirically detect here if a test incorrectly
...
...
@@ -651,7 +651,7 @@ func (t *T) xget1(stream string, eventp interface{}) *Msg {
reventp
:=
reflect
.
ValueOf
(
eventp
)
if
reventp
.
Type
()
.
Elem
()
!=
reflect
.
TypeOf
(
msg
.
Event
)
{
t
.
queuenak
(
msg
,
"unexpected event type"
)
t
.
Fatalf
(
"%s: expect: %s: got %
#v"
,
ch
.
name
(),
reventp
.
Elem
()
.
Type
()
,
msg
.
Event
)
t
.
Fatalf
(
"%s: expect: %s: got %
T %v"
,
ch
.
name
(),
reventp
.
Elem
()
.
Type
(),
msg
.
Event
,
msg
.
Event
)
}
// *eventp = msg.Event
...
...
@@ -776,8 +776,9 @@ func (t *T) FailNow() {
bad
+=
fmt
.
Sprintf
(
"noone is sending
\n
"
)
}
else
{
bad
+=
fmt
.
Sprintf
(
"there are %d pending sender(s) on other channel(s):
\n
"
,
len
(
sendv
))
//bad += fmt.Sprintf("the following send(s) are pending:\n"
for
_
,
__
:=
range
sendv
{
bad
+=
fmt
.
Sprintf
(
"%s
:
\t
%T %v
\n
"
,
__
.
ch
.
name
(),
__
.
msg
.
Event
,
__
.
msg
.
Event
)
bad
+=
fmt
.
Sprintf
(
"%s
\t
<-
%T %v
\n
"
,
__
.
ch
.
name
(),
__
.
msg
.
Event
,
__
.
msg
.
Event
)
}
}
...
...
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