diff --git a/protocol/etch/engine.go b/protocol/etch/engine.go index 6050f42..33c7c8d 100644 --- a/protocol/etch/engine.go +++ b/protocol/etch/engine.go @@ -70,9 +70,7 @@ type Client struct { func (s *Client) Run() { addr := doa.Try(net.ResolveUDPAddr("udp", s.Server)) conn := doa.Try(net.DialUDP("udp", nil, addr)) - for range 32 { - doa.Try(conn.Write([]byte("Hello World!"))) - } + doa.Try(conn.Write([]byte("Hello World!"))) } func NewClient(server string) *Client { diff --git a/protocol/etch/engine_test.go b/protocol/etch/engine_test.go index 9df85ea..a27bf69 100644 --- a/protocol/etch/engine_test.go +++ b/protocol/etch/engine_test.go @@ -11,8 +11,7 @@ const ( func TestProtocolEtch(t *testing.T) { server := NewServer(DazeServerListenOn) - go server.Run() - time.Sleep(time.Second) + server.Run() client := NewClient(DazeServerListenOn) client.Run()