Skip to content

Commit

Permalink
remove flushing
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed May 8, 2019
1 parent da54ae0 commit 0388e07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/comm/comm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
)

func TestComm(t *testing.T) {
defer log.Flush()
token := make([]byte, 40000000)
rand.Read(token)

Expand Down
5 changes: 1 addition & 4 deletions src/croc/croc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import (
"testing"
"time"

log "github.com/schollz/logger"
"github.com/schollz/croc/v6/src/tcp"
log "github.com/schollz/logger"
)

func TestCroc(t *testing.T) {
defer log.Flush()

go tcp.Run("debug", "8081", "8082,8083,8084,8085")
go tcp.Run("debug", "8082")
Expand All @@ -19,9 +18,7 @@ func TestCroc(t *testing.T) {
go tcp.Run("debug", "8085")
time.Sleep(300 * time.Millisecond)

log.Flush()
log.Debug("setting up sender")
log.Flush()
sender, err := New(Options{
IsSender: true,
SharedSecret: "test",
Expand Down

0 comments on commit 0388e07

Please sign in to comment.