summaryrefslogtreecommitdiff
path: root/tests/plugins/config/config_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-11 11:45:24 +0300
committerValery Piashchynski <[email protected]>2021-08-11 11:45:24 +0300
commit3e2e9fbd9650c44d57a41a9dc702fe93aad2b77f (patch)
tree38f25c3c0679e8510b896d001d1b7dccf21c4bd8 /tests/plugins/config/config_test.go
parentd449d9d5aec1eec6d494064299feb1551f88ffe2 (diff)
Replace all 'localhost' with '127.0.0.1'. Fix default configuration and
other small bugs. Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/config/config_test.go')
-rwxr-xr-xtests/plugins/config/config_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/plugins/config/config_test.go b/tests/plugins/config/config_test.go
index b6063cec..87ab1eaa 100755
--- a/tests/plugins/config/config_test.go
+++ b/tests/plugins/config/config_test.go
@@ -97,7 +97,7 @@ func TestConfigOverwriteValid(t *testing.T) {
vp := &config.Viper{}
vp.Path = "configs/.rr.yaml"
vp.Prefix = "rr"
- vp.Flags = []string{"rpc.listen=tcp://localhost:36643"}
+ vp.Flags = []string{"rpc.listen=tcp://127.0.0.1:36643"}
err = container.RegisterAll(
&logger.ZapLogger{},
@@ -143,7 +143,7 @@ func TestConfigEnvVariables(t *testing.T) {
t.Fatal(err)
}
- err = os.Setenv("SUPER_RPC_ENV", "tcp://localhost:36643")
+ err = os.Setenv("SUPER_RPC_ENV", "tcp://127.0.0.1:36643")
assert.NoError(t, err)
vp := &config.Viper{}
@@ -194,7 +194,7 @@ func TestConfigEnvVariablesFail(t *testing.T) {
t.Fatal(err)
}
- err = os.Setenv("SUPER_RPC_ENV", "tcp://localhost:6065")
+ err = os.Setenv("SUPER_RPC_ENV", "tcp://127.0.0.1:6065")
assert.NoError(t, err)
vp := &config.Viper{}