mirror of https://github.com/schollz/croc.git
less printing
This commit is contained in:
parent
5a94062171
commit
da2b22f73d
|
@ -28,6 +28,7 @@ func sendAndReceive(t *testing.T, forceSend int, local bool) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
c := Init(true)
|
c := Init(true)
|
||||||
c.NoLocal = !local
|
c.NoLocal = !local
|
||||||
|
// c.AddressTCPPorts = []string{"8154", "8155"}
|
||||||
c.ForceSend = forceSend
|
c.ForceSend = forceSend
|
||||||
c.UseCompression = true
|
c.UseCompression = true
|
||||||
c.UseEncryption = true
|
c.UseEncryption = true
|
||||||
|
@ -40,6 +41,7 @@ func sendAndReceive(t *testing.T, forceSend int, local bool) {
|
||||||
os.Chdir("test")
|
os.Chdir("test")
|
||||||
c := Init(true)
|
c := Init(true)
|
||||||
c.NoLocal = !local
|
c.NoLocal = !local
|
||||||
|
// c.AddressTCPPorts = []string{"8154", "8155"}
|
||||||
c.ForceSend = forceSend
|
c.ForceSend = forceSend
|
||||||
startTime = time.Now()
|
startTime = time.Now()
|
||||||
assert.Nil(t, c.Receive(room))
|
assert.Nil(t, c.Receive(room))
|
||||||
|
|
|
@ -180,7 +180,6 @@ func send(forceSend int, serverAddress string, tcpPorts []string, isLocal bool,
|
||||||
currentPostition := int64(0)
|
currentPostition := int64(0)
|
||||||
for {
|
for {
|
||||||
bytesread, err := f.Read(buffer)
|
bytesread, err := f.Read(buffer)
|
||||||
log.Debug(bytesread, err)
|
|
||||||
if bytesread > 0 {
|
if bytesread > 0 {
|
||||||
// do compression
|
// do compression
|
||||||
var compressedBytes []byte
|
var compressedBytes []byte
|
||||||
|
|
Loading…
Reference in New Issue