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:
		| @@ -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)) | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user