Skip to content

Commit dc30a51

Browse files
committed
fixup! test(cli): improve TestServer/SpammyLogs line count
1 parent dd1b097 commit dc30a51

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

cli/server_test.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"runtime"
2626
"strconv"
2727
"strings"
28-
"sync"
2928
"sync/atomic"
3029
"testing"
3130
"time"
@@ -2349,22 +2348,3 @@ func mockTelemetryServer(t *testing.T) (*url.URL, chan *telemetry.Deployment, ch
23492348

23502349
return serverURL, deployment, snapshot
23512350
}
2352-
2353-
// syncWriter provides a thread-safe io.ReadWriter implementation
2354-
type syncReaderWriter struct {
2355-
buf bytes.Buffer
2356-
mu sync.Mutex
2357-
}
2358-
2359-
func (w *syncReaderWriter) Write(p []byte) (n int, err error) {
2360-
w.mu.Lock()
2361-
defer w.mu.Unlock()
2362-
return w.buf.Write(p)
2363-
}
2364-
2365-
func (w *syncReaderWriter) Read(p []byte) (n int, err error) {
2366-
w.mu.Lock()
2367-
defer w.mu.Unlock()
2368-
2369-
return w.buf.Read(p)
2370-
}

0 commit comments

Comments
 (0)