--- 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>"},