|
6 | 6 | "os/exec"
|
7 | 7 | "testing"
|
8 | 8 |
|
| 9 | + "github.com/hashicorp/go-hclog" |
9 | 10 | "github.com/jmoiron/sqlx"
|
10 | 11 | "github.com/julien040/anyquery/rpc"
|
11 | 12 | "github.com/mattn/go-sqlite3"
|
@@ -119,6 +120,7 @@ func TestRawPlugin(t *testing.T) {
|
119 | 120 | return conn.CreateModule("test", &SQLiteModule{
|
120 | 121 | PluginPath: "./_test/test.out",
|
121 | 122 | ConnectionPool: rpc.NewConnectionPool(),
|
| 123 | + Logger: hclog.NewNullLogger(), |
122 | 124 | })
|
123 | 125 | },
|
124 | 126 | })
|
@@ -206,6 +208,7 @@ func TestRawPlugin2(t *testing.T) {
|
206 | 208 | return conn.CreateModule("test", &SQLiteModule{
|
207 | 209 | PluginPath: "./_test/test2.out",
|
208 | 210 | ConnectionPool: rpc.NewConnectionPool(),
|
| 211 | + Logger: hclog.NewNullLogger(), |
209 | 212 | })
|
210 | 213 | },
|
211 | 214 | })
|
@@ -304,6 +307,7 @@ func TestLibPlugin(t *testing.T) {
|
304 | 307 | return conn.CreateModule("test", &SQLiteModule{
|
305 | 308 | PluginPath: "./_test/normalplugin.out",
|
306 | 309 | ConnectionPool: rpc.NewConnectionPool(),
|
| 310 | + Logger: hclog.NewNullLogger(), |
307 | 311 | })
|
308 | 312 | },
|
309 | 313 | })
|
@@ -460,6 +464,7 @@ func TestCUDOperations(t *testing.T) {
|
460 | 464 | return conn.CreateModule("test_insert", &SQLiteModule{
|
461 | 465 | PluginPath: "./_test/insertplugin.out",
|
462 | 466 | ConnectionPool: rpc.NewConnectionPool(),
|
| 467 | + Logger: hclog.NewNullLogger(), |
463 | 468 | })
|
464 | 469 | },
|
465 | 470 | })
|
|
0 commit comments