--- a/xmpp_test.go Sat Dec 31 10:11:01 2011 -0700
+++ b/xmpp_test.go Sat Dec 31 11:39:23 2011 -0700
@@ -16,7 +16,7 @@
func TestReadError(t *testing.T) {
r := strings.NewReader(`<stream:error><bad-foo/></stream:error>`)
ch := make(chan interface{})
- go readXml(r, ch, make(map[string] func(*xml.Name) ExtendedStanza))
+ go readXml(r, ch, make(map[string] func(*xml.Name) interface{}))
x := <- ch
se, ok := x.(*streamError)
if !ok {
@@ -32,7 +32,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) ExtendedStanza))
+ go readXml(r, ch, make(map[string] func(*xml.Name) interface{}))
x = <- ch
se, ok = x.(*streamError)
if !ok {
@@ -50,7 +50,7 @@
`xmlns="jabber:client" xmlns:stream="` + NsStream +
`" version="1.0">`)
ch := make(chan interface{})
- go readXml(r, ch, make(map[string] func(*xml.Name) ExtendedStanza))
+ go readXml(r, ch, make(map[string] func(*xml.Name) interface{}))
x := <- ch
ss, ok := x.(*stream)
if !ok {