--- a/xmpp/xmpp_test.go Sat Sep 07 10:30:22 2013 -0700
+++ b/xmpp/xmpp_test.go Sat Sep 07 11:19:29 2013 -0700
@@ -17,7 +17,7 @@
r := strings.NewReader(`<stream:error><bad-foo xmlns="blah"/>` +
`</stream:error>`)
ch := make(chan interface{})
- go readXml(r, ch, make(map[string]func(*xml.Name) interface{}))
+ go readXml(r, ch, make(map[xml.Name]reflect.Type))
x := <-ch
se, ok := x.(*streamError)
if !ok {
@@ -33,7 +33,7 @@
`<text xml:lang="en" xmlns="` + NsStreams +
`">Error text</text></stream:error>`)
ch = make(chan interface{})
- go readXml(r, ch, make(map[string]func(*xml.Name) interface{}))
+ go readXml(r, ch, make(map[xml.Name]reflect.Type))
x = <-ch
se, ok = x.(*streamError)
if !ok {
@@ -51,7 +51,7 @@
`xmlns="` + NsClient + `" xmlns:stream="` + NsStream +
`" version="1.0">`)
ch := make(chan interface{})
- go readXml(r, ch, make(map[string]func(*xml.Name) interface{}))
+ go readXml(r, ch, make(map[xml.Name]reflect.Type))
x := <-ch
ss, ok := x.(*stream)
if !ok {