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

@@ -2,6 +2,7 @@ package memory
import (
"fmt"
"os"
"testing"
"time"
@@ -205,7 +206,9 @@ func TestMemoryRegistryTTLConcurrent(t *testing.T) {
}
}
t.Logf("test will wait %v, then check TTL timeouts", waitTime)
if len(os.Getenv("IN_TRAVIS_CI")) == 0 {
t.Logf("test will wait %v, then check TTL timeouts", waitTime)
}
errChan := make(chan error, concurrency)
syncChan := make(chan struct{})

View File

@@ -1,6 +1,7 @@
package registry
import (
"os"
"testing"
)
@@ -32,7 +33,9 @@ func TestRemove(t *testing.T) {
if i := len(servs); i > 0 {
t.Errorf("Expected 0 nodes, got %d: %+v", i, servs)
}
t.Logf("Services %+v", servs)
if len(os.Getenv("IN_TRAVIS_CI")) == 0 {
t.Logf("Services %+v", servs)
}
}
func TestRemoveNodes(t *testing.T) {
@@ -67,5 +70,7 @@ func TestRemoveNodes(t *testing.T) {
if i := len(nodes); i != 1 {
t.Errorf("Expected only 1 node, got %d: %+v", i, nodes)
}
t.Logf("Nodes %+v", nodes)
if len(os.Getenv("IN_TRAVIS_CI")) == 0 {
t.Logf("Nodes %+v", nodes)
}
}