Browse Source

Initialize mock broker test item

Evan Huus 11 years ago
parent
commit
5a9d15e16e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mock/broker.go

+ 1 - 0
mock/broker.go

@@ -123,6 +123,7 @@ func NewBroker(t *testing.T, responses chan []byte) *Broker {
 	broker := new(Broker)
 	broker.stopper = make(chan bool)
 	broker.responses = responses
+	broker.t = t
 
 	broker.listener, err = net.Listen("tcp", "localhost:0")
 	if err != nil {