Skip to content

Commit 1161da6

Browse files
committed
enable verbose log
1 parent 5043cc3 commit 1161da6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
go-version: ${{ env.GO_VERSION }}
3333
cache-dependency-path: "**/*.sum"
3434
- name: Test
35-
run: go test ./...
35+
run: go test -v ./...
3636
- name: Integration tests
37-
run: go test ./...
37+
run: go test -v ./...
3838
env:
3939
INTEGRATION_TESTS: "true"
4040
MYSQL_URL: "mysql:mysql@tcp(127.0.0.1:3306)/mysql"

query_integration_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"database/sql"
66
"errors"
7-
"log"
87
"os"
98
"strings"
109
"testing"
@@ -55,7 +54,7 @@ func TestQuery_MySQL(t *testing.T) {
5554
// Attempt to connect multiple times because these tests are ran in Drone, where the mysql server may not be immediately available when this test is ran.
5655
limit := 10
5756
for i := 0; i < limit; i++ {
58-
log.Println("Attempting mysql connection...")
57+
t.Log("Attempting mysql connection...")
5958
d, err := sql.Open("mysql", args.MySQLURL)
6059
if err == nil {
6160
if err := d.Ping(); err == nil {

0 commit comments

Comments
 (0)