xmpp/structs_test.go
changeset 128 8342afcffc92
parent 126 367e76b3028e
child 142 0ff033eed887
--- a/xmpp/structs_test.go	Sat Sep 07 10:30:22 2013 -0700
+++ b/xmpp/structs_test.go	Sat Sep 07 11:19:29 2013 -0700
@@ -122,7 +122,7 @@
 	str := `<message to="a@b.c"><body>foo!</body></message>`
 	r := strings.NewReader(str)
 	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))
 	obs := <-ch
 	exp := &Message{XMLName: xml.Name{Local: "message", Space: "jabber:client"},
 		Header: Header{To: "a@b.c", Innerxml: "<body>foo!</body>"},