xmpp/structs_test.go
changeset 163 3f891f7fe817
parent 147 d7679d991b17
child 172 36a42bc073f0
--- a/xmpp/structs_test.go	Mon Sep 30 18:59:37 2013 -0600
+++ b/xmpp/structs_test.go	Mon Sep 30 20:31:25 2013 -0600
@@ -118,7 +118,8 @@
 	str := `<message to="a@b.c"><body>foo!</body></message>`
 	r := strings.NewReader(str)
 	ch := make(chan interface{})
-	go recvXml(r, ch, make(map[xml.Name]reflect.Type))
+	cl := &Client{}
+	go cl.recvXml(r, ch, make(map[xml.Name]reflect.Type))
 	obs := <-ch
 	exp := &Message{XMLName: xml.Name{Local: "message", Space: "jabber:client"},
 		Header: Header{To: "a@b.c", Innerxml: "<body>foo!</body>"},