Use SyncWrite call to send a packet to proxy

This commit is contained in:
9seconds
2026-03-13 14:44:56 +01:00
parent 33c0fa9bf7
commit 4138cc6494
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -247,7 +247,7 @@ func (suite *ConnTestSuite) TestSyncWriteBlocksAsyncWrite() {
go func() {
defer close(syncDone)
c.SyncWrite([]byte("exclusive"))
c.SyncWrite([]byte("exclusive")) //nolint: errcheck
}()
// Give SyncWrite time to acquire the lock.
@@ -258,7 +258,7 @@ func (suite *ConnTestSuite) TestSyncWriteBlocksAsyncWrite() {
go func() {
defer close(writeDone)
c.Write([]byte("blocked"))
c.Write([]byte("blocked")) //nolint: errcheck
}()
// SyncWrite should finish first.