--- a/roster_test.go Thu Jan 19 12:25:36 2012 -0600
+++ b/roster_test.go Thu Jan 19 13:41:42 2012 -0600
@@ -25,9 +25,13 @@
NsRoster + `"><item jid="a@b.c"/></query></iq>`
r := strings.NewReader(str)
var st Stanza = &Iq{}
- xml.Unmarshal(r, st)
+ err := xml.Unmarshal(r, st)
+ if err != nil {
+ t.Fatalf("Unmarshal: %v", err)
+ }
+ assertEquals(t, "from", st.GetFrom())
m := map[string]func(*xml.Name) interface{}{NsRoster: newRosterQuery}
- err := parseExtended(st, m)
+ err = parseExtended(st, m)
if err != nil {
t.Fatalf("parseExtended: %v", err)
}