dont display t.Log/t.Logf as errors in github actions (#1508)

* fix tests and github action annotations

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-04-09 14:05:46 +03:00
committed by GitHub
parent bc1c8223e6
commit 1063b954de
15 changed files with 118 additions and 41 deletions

View File

@@ -1,6 +1,7 @@
package memory
import (
"os"
"testing"
"github.com/micro/go-micro/v2/transport"
@@ -24,7 +25,9 @@ func TestMemoryTransport(t *testing.T) {
if err := sock.Recv(&m); err != nil {
return
}
t.Logf("Server Received %s", string(m.Body))
if len(os.Getenv("IN_TRAVIS_CI")) == 0 {
t.Logf("Server Received %s", string(m.Body))
}
if err := sock.Send(&transport.Message{
Body: []byte(`pong`),
}); err != nil {
@@ -54,7 +57,9 @@ func TestMemoryTransport(t *testing.T) {
if err := c.Recv(&m); err != nil {
return
}
t.Logf("Client Received %s", string(m.Body))
if len(os.Getenv("IN_TRAVIS_CI")) == 0 {
t.Logf("Client Received %s", string(m.Body))
}
}
}