From 9e81a8e9fdc124104b16fc9339e309d8884bb855 Mon Sep 17 00:00:00 2001
From: Dzianis Andreyenka <andreenkodn@gmail.com>
Date: Mon, 6 May 2024 16:21:02 +0200
Subject: [PATCH] Connector config's unit tests refactoring

Signed-off-by: Dzianis Andreyenka <andreenkodn@gmail.com>
---
 cmd/tezosconnect_test.go                                      | 4 ++--
 test/firefly.tezosconnect-without-connector.yaml              | 3 ---
 ...start.tezosconnect.yaml => no-connector.tezosconnect.yaml} | 0
 3 files changed, 2 insertions(+), 5 deletions(-)
 delete mode 100644 test/firefly.tezosconnect-without-connector.yaml
 rename test/{fail-start.tezosconnect.yaml => no-connector.tezosconnect.yaml} (100%)

diff --git a/cmd/tezosconnect_test.go b/cmd/tezosconnect_test.go
index bd1f6d3..37c1576 100644
--- a/cmd/tezosconnect_test.go
+++ b/cmd/tezosconnect_test.go
@@ -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",
 		},
 	}
@@ -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{})
 
diff --git a/test/firefly.tezosconnect-without-connector.yaml b/test/firefly.tezosconnect-without-connector.yaml
deleted file mode 100644
index 88ecef0..0000000
--- a/test/firefly.tezosconnect-without-connector.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-persistence:
-  leveldb:
-    path: "../test/ldb"
diff --git a/test/fail-start.tezosconnect.yaml b/test/no-connector.tezosconnect.yaml
similarity index 100%
rename from test/fail-start.tezosconnect.yaml
rename to test/no-connector.tezosconnect.yaml