@@ -47,7 +47,7 @@ func (a fakeAddr) String() string {
47
47
return "str"
48
48
}
49
49
50
- // newTestConn creates a connnection backed by a fake network connection using
50
+ // newTestConn creates a connection backed by a fake network connection using
51
51
// default values for buffering.
52
52
func newTestConn (r io.Reader , w io.Writer , isServer bool ) * Conn {
53
53
return newConn (fakeNetConn {Reader : r , Writer : w }, isServer , 1024 , 1024 , nil , nil , nil )
@@ -149,7 +149,7 @@ func TestFraming(t *testing.T) {
149
149
}
150
150
151
151
func TestControl (t * testing.T ) {
152
- const message = "this is a ping/pong messsage "
152
+ const message = "this is a ping/pong message "
153
153
for _ , isServer := range []bool {true , false } {
154
154
for _ , isWriteControl := range []bool {true , false } {
155
155
name := fmt .Sprintf ("s:%v, wc:%v" , isServer , isWriteControl )
@@ -440,7 +440,7 @@ func TestWriteAfterMessageWriterClose(t *testing.T) {
440
440
w , _ := wc .NextWriter (BinaryMessage )
441
441
io .WriteString (w , "hello" )
442
442
if err := w .Close (); err != nil {
443
- t .Fatalf ("unxpected error closing message writer, %v" , err )
443
+ t .Fatalf ("unexpected error closing message writer, %v" , err )
444
444
}
445
445
446
446
if _ , err := io .WriteString (w , "world" ); err == nil {
0 commit comments