package test import ( "testing" ) func TestEnv(t *testing.T) { const msg = "Hello, World!" c, s := newClientServer(t) defer closeClientServer(c, s) r := c.Send("echo %s", msg) if r != msg { t.Errorf("wrong reply: send '%s', recv '%s'", msg, r) } }