diff -r a77fc342e013 -r 1dc47df5c99f xmpp_test.go --- a/xmpp_test.go Thu Dec 29 11:11:18 2011 -0700 +++ b/xmpp_test.go Thu Dec 29 11:17:52 2011 -0700 @@ -18,7 +18,7 @@ ch := make(chan interface{}) go readXml(r, ch) x := <- ch - se, ok := x.(*StreamError) + se, ok := x.(*streamError) if !ok { t.Fatalf("not StreamError: %v", reflect.TypeOf(x)) } @@ -34,7 +34,7 @@ ch = make(chan interface{}) go readXml(r, ch) x = <- ch - se, ok = x.(*StreamError) + se, ok = x.(*streamError) if !ok { t.Fatalf("not StreamError: %v", reflect.TypeOf(x)) } @@ -78,13 +78,13 @@ } func TestWriteError(t *testing.T) { - se := &StreamError{Any: Generic{XMLName: xml.Name{Local: + se := &streamError{Any: Generic{XMLName: xml.Name{Local: "blah"}}} str := testWrite(se) exp := `` assertEquals(t, exp, str) - se = &StreamError{Any: Generic{XMLName: xml.Name{Space: + se = &streamError{Any: Generic{XMLName: xml.Name{Space: nsStreams, Local: "foo"}}, Text: &errText{Lang: "ru", Text: "Пошёл ты"}} str = testWrite(se)