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

@@ -3,6 +3,7 @@ package cockroach
import (
"database/sql"
"fmt"
"os"
"testing"
"time"
@@ -11,6 +12,10 @@ import (
)
func TestSQL(t *testing.T) {
if len(os.Getenv("IN_TRAVIS_CI")) != 0 {
t.Skip()
}
connection := fmt.Sprintf(
"host=%s port=%d user=%s sslmode=disable dbname=%s",
"localhost",
@@ -23,7 +28,7 @@ func TestSQL(t *testing.T) {
t.Fatal(err)
}
if err := db.Ping(); err != nil {
t.Skip(err)
t.Fatal(err)
}
db.Close()