From 8cc5fe1f01b71a39e4612a80b7c06a890527e7ff Mon Sep 17 00:00:00 2001 From: genofire Date: Thu, 14 Apr 2022 00:32:28 +0200 Subject: [PATCH] test: fix reading toml for output and database --- database/all/internel_test.go | 4 ++-- output/all/output_test.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/database/all/internel_test.go b/database/all/internel_test.go index 21e871b..fbeffcd 100644 --- a/database/all/internel_test.go +++ b/database/all/internel_test.go @@ -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", }, diff --git a/output/all/output_test.go b/output/all/output_test.go index a5fece3..45c8469 100644 --- a/output/all/output_test.go +++ b/output/all/output_test.go @@ -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", },