roster_test.go
changeset 39 4a06f7ccfa84
parent 38 2839fece923e
child 42 f6bb47ca12f2
--- a/roster_test.go	Sat Dec 31 11:39:23 2011 -0700
+++ b/roster_test.go	Sat Dec 31 11:45:44 2011 -0700
@@ -14,9 +14,7 @@
 // This is mostly just tests of the roster data structures.
 
 func TestRosterIqMarshal(t *testing.T) {
-	iq := &Iq{From: "from", Lang: "en", Nested:
-		RosterQuery{XMLName: xml.Name{Space: NsRoster, Local:
-				"query"}, Item: []RosterItem{}}}
+	iq := &Iq{From: "from", Lang: "en", Nested: RosterQuery{}}
 	exp := `<iq from="from" xml:lang="en"><query xmlns="` +
 		NsRoster + `"></query></iq>`
 	assertMarshal(t, exp, iq)