Skip to content

Commit 3e007c6

Browse files
committed
Remove unneeded Foo test
1 parent 7b05f53 commit 3e007c6

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

websocket_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ func benchConn(b *testing.B, echo, stream bool, size int) {
809809
defer c.Close(websocket.StatusInternalError, "")
810810

811811
msg := []byte(strings.Repeat("2", size))
812-
buf := make([]byte, len(msg))
812+
readBuf := make([]byte, len(msg))
813813
b.SetBytes(int64(len(msg)))
814814
b.ReportAllocs()
815815
b.ResetTimer()
@@ -842,7 +842,7 @@ func benchConn(b *testing.B, echo, stream bool, size int) {
842842
b.Fatal(err)
843843
}
844844

845-
_, err = io.ReadFull(r, buf)
845+
_, err = io.ReadFull(r, readBuf)
846846
if err != nil {
847847
b.Fatal(err)
848848
}
@@ -879,7 +879,7 @@ func BenchmarkConn(b *testing.B) {
879879
b.Run("echo", func(b *testing.B) {
880880
for _, size := range sizes {
881881
b.Run(strconv.Itoa(size), func(b *testing.B) {
882-
benchConn(b, true, false, size)
882+
benchConn(b, false, false, size)
883883
})
884884
}
885885
})

xor_test.go

-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"crypto/rand"
55
"strconv"
66
"testing"
7-
"unsafe"
87

98
"github.com/google/go-cmp/cmp"
109
)
@@ -81,8 +80,3 @@ func BenchmarkXOR(b *testing.B) {
8180
})
8281
}
8382
}
84-
85-
func TestFoo(t *testing.T) {
86-
t.Log(unsafe.Sizeof(messageWriter{}))
87-
t.Log(unsafe.Sizeof(messageReader{}))
88-
}

0 commit comments

Comments
 (0)