test: fix reading toml for output and database

This commit is contained in:
genofire 2022-04-14 00:32:28 +02:00
parent 2792010a81
commit 8cc5fe1f01
2 changed files with 5 additions and 5 deletions

View File

@ -38,13 +38,13 @@ func TestStart(t *testing.T) {
},
},
"b": nil,
"c": []interface{}{
"c": []map[string]interface{}{
map[string]interface{}{
"path": "c1",
},
},
// fetch continue command in Connect
"d": []interface{}{
"d": []map[string]interface{}{
map[string]interface{}{
"path": "d0",
},

View File

@ -49,7 +49,7 @@ func TestStart(t *testing.T) {
return nil, errors.New("blub")
})
allOutput, err := Register(map[string]interface{}{
"a": []interface{}{
"a": []map[string]interface{}{
map[string]interface{}{
"enable": false,
"path": "a1",
@ -63,14 +63,14 @@ func TestStart(t *testing.T) {
},
},
"b": nil,
"c": []interface{}{
"c": []map[string]interface{}{
map[string]interface{}{
"path": "c1",
"filter": map[string]interface{}{},
},
},
// fetch continue command in Connect
"d": []interface{}{
"d": []map[string]interface{}{
map[string]interface{}{
"path": "d0",
},