Skip to content

Commit

Permalink
Merge pull request #48 from hyperledger/tests/ut
Browse files Browse the repository at this point in the history
Connector config's unit tests refactoring
  • Loading branch information
alex-semenyuk authored May 7, 2024
2 parents a363ae2 + 9e81a8e commit 40788b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/tezosconnect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestRun(t *testing.T) {
},
{
name: "error on NewTezosConnector",
cfgFile: "../test/firefly.tezosconnect-without-connector.yaml",
cfgFile: "../test/no-connector.tezosconnect.yaml",
errMsg: "FF23051",
},
}
Expand All @@ -50,7 +50,7 @@ func TestRun(t *testing.T) {

func TestRunMigrationsBadConfig(t *testing.T) {
rootCmd.SetArgs([]string{
"migrate", "leveldb2postgres", "-f", "../test/fail-start.tezosconnect.yaml",
"migrate", "leveldb2postgres", "-f", "../test/no-connector.tezosconnect.yaml",
})
defer rootCmd.SetArgs([]string{})

Expand Down
3 changes: 0 additions & 3 deletions test/firefly.tezosconnect-without-connector.yaml

This file was deleted.

File renamed without changes.

0 comments on commit 40788b2

Please sign in to comment.