xmpp/xmpp_test.go
changeset 147 d7679d991b17
parent 142 0ff033eed887
child 163 3f891f7fe817
--- a/xmpp/xmpp_test.go	Sun Sep 15 12:42:49 2013 -0600
+++ b/xmpp/xmpp_test.go	Sun Sep 15 13:09:26 2013 -0600
@@ -13,7 +13,7 @@
 	r := strings.NewReader(`<stream:error><bad-foo xmlns="blah"/>` +
 		`</stream:error>`)
 	ch := make(chan interface{})
-	go readXml(r, ch, make(map[xml.Name]reflect.Type))
+	go recvXml(r, ch, make(map[xml.Name]reflect.Type))
 	x := <-ch
 	se, ok := x.(*streamError)
 	if !ok {
@@ -29,7 +29,7 @@
 		`<text xml:lang="en" xmlns="` + NsStreams +
 		`">Error text</text></stream:error>`)
 	ch = make(chan interface{})
-	go readXml(r, ch, make(map[xml.Name]reflect.Type))
+	go recvXml(r, ch, make(map[xml.Name]reflect.Type))
 	x = <-ch
 	se, ok = x.(*streamError)
 	if !ok {
@@ -47,7 +47,7 @@
 		`xmlns="` + NsClient + `" xmlns:stream="` + NsStream +
 		`" version="1.0">`)
 	ch := make(chan interface{})
-	go readXml(r, ch, make(map[xml.Name]reflect.Type))
+	go recvXml(r, ch, make(map[xml.Name]reflect.Type))
 	x := <-ch
 	ss, ok := x.(*stream)
 	if !ok {
@@ -66,7 +66,7 @@
 	wg.Add(1)
 	go func() {
 		defer wg.Done()
-		writeXml(w, ch)
+		sendXml(w, ch)
 	}()
 	ch <- obj
 	close(ch)