mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 21:30:16 +02:00
remove flushing
This commit is contained in:
parent
da54ae060a
commit
0388e07689
2 changed files with 1 additions and 5 deletions
|
@ -11,7 +11,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestComm(t *testing.T) {
|
func TestComm(t *testing.T) {
|
||||||
defer log.Flush()
|
|
||||||
token := make([]byte, 40000000)
|
token := make([]byte, 40000000)
|
||||||
rand.Read(token)
|
rand.Read(token)
|
||||||
|
|
||||||
|
|
|
@ -5,12 +5,11 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
log "github.com/schollz/logger"
|
|
||||||
"github.com/schollz/croc/v6/src/tcp"
|
"github.com/schollz/croc/v6/src/tcp"
|
||||||
|
log "github.com/schollz/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCroc(t *testing.T) {
|
func TestCroc(t *testing.T) {
|
||||||
defer log.Flush()
|
|
||||||
|
|
||||||
go tcp.Run("debug", "8081", "8082,8083,8084,8085")
|
go tcp.Run("debug", "8081", "8082,8083,8084,8085")
|
||||||
go tcp.Run("debug", "8082")
|
go tcp.Run("debug", "8082")
|
||||||
|
@ -19,9 +18,7 @@ func TestCroc(t *testing.T) {
|
||||||
go tcp.Run("debug", "8085")
|
go tcp.Run("debug", "8085")
|
||||||
time.Sleep(300 * time.Millisecond)
|
time.Sleep(300 * time.Millisecond)
|
||||||
|
|
||||||
log.Flush()
|
|
||||||
log.Debug("setting up sender")
|
log.Debug("setting up sender")
|
||||||
log.Flush()
|
|
||||||
sender, err := New(Options{
|
sender, err := New(Options{
|
||||||
IsSender: true,
|
IsSender: true,
|
||||||
SharedSecret: "test",
|
SharedSecret: "test",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue