Skip to content

Commit 4486be6

Browse files
ACTION: add log for unit test
1 parent 6089745 commit 4486be6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
env:
6060
MYSQL_HOST: 127.0.0.1
6161
MYSQL_USER: root
62-
MYSQL_DB: ${{ job.services.mysql.env.MYSQL_DATABASE }}
62+
MYSQL_DB: test_sqlkata
6363
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
6464
- name: Pack QueryBuilder
6565
if: matrix.os == 'ubuntu-latest'

QueryBuilder.Tests/MySqlExecutionTest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ public QueryFactory SetupDb()
6060
var host = System.Environment.GetEnvironmentVariable("MYSQL_HOST");
6161
var user = System.Environment.GetEnvironmentVariable("MYSQL_USER");
6262
var dbName = System.Environment.GetEnvironmentVariable("MYSQL_DB");
63+
var cs = $"server={host};user={user};database={dbName}";
64+
Console.WriteLine($"Using cs: {cs}");
6365

64-
var connection = new MySqlConnection($"server={host};user={user};database={dbName}");
66+
var connection = new MySqlConnection(cs);
6567

6668
var db = new QueryFactory(connection, new MySqlCompiler());
6769

0 commit comments

Comments
 (0)