package tcp_learn

import (
	"testing"
	"time"
)

func TestTcpServer(t *testing.T) {

	var exit chan bool

	go func() {
		TcpServer()
	}()

	go func() {
		time.Sleep(time.Second)

		exit = TcpClient()
	}()

	<-exit
}
