Commit 9d07a6b6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ad30391d
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
package tracetest package tracetest
// synchronous channels. // synchronous channels.
// XXX move back to tracetest.go ? -> likely yes
import ( import (
"errors" "errors"
...@@ -128,7 +127,6 @@ func (ch *_chan) recv() *_Msg { ...@@ -128,7 +127,6 @@ func (ch *_chan) recv() *_Msg {
} }
// XXX -> Unpause? Cont? Continue?
// Ack acknowledges the event was processed and unblocks producer goroutine. // Ack acknowledges the event was processed and unblocks producer goroutine.
func (m *_Msg) Ack() { func (m *_Msg) Ack() {
m.ack <- nil m.ack <- nil
......
...@@ -449,7 +449,9 @@ func (t *T) xget1(stream string, eventp interface{}) *_Msg { ...@@ -449,7 +449,9 @@ func (t *T) xget1(stream string, eventp interface{}) *_Msg {
ch := t.chanForStream(stream) ch := t.chanForStream(stream)
t.mu.Unlock() t.mu.Unlock()
// XXX ch == nil -> no longer operational if ch == nil {
t.Fatalf("%s: recv: cancled (test failed)", stream)
}
return ch.RecvInto(eventp) return ch.RecvInto(eventp)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment