xmpp_test.go
changeset 36 9fe022261dcc
parent 34 7b1f924c75e2
child 38 2839fece923e
--- a/xmpp_test.go	Fri Dec 30 18:25:08 2011 -0700
+++ b/xmpp_test.go	Fri Dec 30 21:49:00 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)
+	go readXml(r, ch, make(map[string] func(*xml.Name) ExtendedStanza))
 	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)
+	go readXml(r, ch, make(map[string] func(*xml.Name) ExtendedStanza))
 	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)
+	go readXml(r, ch, make(map[string] func(*xml.Name) ExtendedStanza))
 	x := <- ch
 	ss, ok := x.(*stream)
 	if !ok {