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