mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-05-15 05:54:17 +00:00
replace sqlite version query
This commit is contained in:
@@ -21,7 +21,7 @@ func TestDbQueryFromRegistry(t *testing.T) {
|
|||||||
Type: "db.query",
|
Type: "db.query",
|
||||||
Params: map[string]any{
|
Params: map[string]any{
|
||||||
"module": "test",
|
"module": "test",
|
||||||
"query": "SELECT sqlite_version();",
|
"query": "SELECT 1;",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -33,7 +33,7 @@ func TestDbQueryFromRegistry(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
payload := "hello"
|
payload := "hello"
|
||||||
expected := map[string]any{"sqlite_version()": "3.53.0"}
|
expected := map[string]any{"1": int64(1)}
|
||||||
|
|
||||||
got, err := processorInstance.Process(t.Context(), common.WrappedPayload{
|
got, err := processorInstance.Process(t.Context(), common.WrappedPayload{
|
||||||
Payload: payload,
|
Payload: payload,
|
||||||
|
|||||||
Reference in New Issue
Block a user