From 425f6701caba70e26e9228ef942af2d8f5a1bbe2 Mon Sep 17 00:00:00 2001 From: Dzianis Andreyenka Date: Thu, 8 Aug 2024 15:33:01 +0200 Subject: [PATCH] Increase ut coverage Signed-off-by: Dzianis Andreyenka --- cmd/tezosconnect_test.go | 5 +++++ test/bad-persistence-type.tezosconnect.yaml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 test/bad-persistence-type.tezosconnect.yaml diff --git a/cmd/tezosconnect_test.go b/cmd/tezosconnect_test.go index 37c1576..645be80 100644 --- a/cmd/tezosconnect_test.go +++ b/cmd/tezosconnect_test.go @@ -24,6 +24,11 @@ func TestRun(t *testing.T) { cfgFile: "../test/missing.firefly.tezosconnect.yaml", errMsg: "FF00101", }, + { + name: "wrong persistence type error", + cfgFile: "../test/bad-persistence-type.tezosconnect.yaml", + errMsg: "FF21043", + }, { name: "error on NewTezosConnector", cfgFile: "../test/no-connector.tezosconnect.yaml", diff --git a/test/bad-persistence-type.tezosconnect.yaml b/test/bad-persistence-type.tezosconnect.yaml new file mode 100644 index 0000000..0fe2ebd --- /dev/null +++ b/test/bad-persistence-type.tezosconnect.yaml @@ -0,0 +1,5 @@ +connector: + blockchain: + rpc: https://ghostnet.example.com +persistence: + type: wrong-type