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

.

parent ad30391d
......@@ -19,7 +19,6 @@
package tracetest
// synchronous channels.
// XXX move back to tracetest.go ? -> likely yes
import (
"errors"
......@@ -128,7 +127,6 @@ func (ch *_chan) recv() *_Msg {
}
// XXX -> Unpause? Cont? Continue?
// Ack acknowledges the event was processed and unblocks producer goroutine.
func (m *_Msg) Ack() {
m.ack <- nil
......
......@@ -449,7 +449,9 @@ func (t *T) xget1(stream string, eventp interface{}) *_Msg {
ch := t.chanForStream(stream)
t.mu.Unlock()
// XXX ch == nil -> no longer operational
if ch == nil {
t.Fatalf("%s: recv: cancled (test failed)", stream)
}
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