Skip to content

Commit

Permalink
Increase ut coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Dzianis Andreyenka <[email protected]>
  • Loading branch information
denisandreenko committed Aug 8, 2024
1 parent 7b65b4b commit 425f670
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/tezosconnect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions test/bad-persistence-type.tezosconnect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
connector:
blockchain:
rpc: https://ghostnet.example.com
persistence:
type: wrong-type

0 comments on commit 425f670

Please sign in to comment.