diff options
author | Valery Piashchynski <[email protected]> | 2021-04-06 15:15:01 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-04-06 15:15:01 +0300 |
commit | ad8db0ad8907fbc562123b41323b34ec6c0dec9f (patch) | |
tree | 036884e8f37d3c9abe965e487fe2eecef903ccf2 /tests/plugins/config | |
parent | 4e468f900e82c344269be0129624cbfcde706e26 (diff) |
- Add new configuration option to the status plugin
Diffstat (limited to 'tests/plugins/config')
-rwxr-xr-x | tests/plugins/config/config_test.go | 4 | ||||
-rwxr-xr-x | tests/plugins/config/plugin2.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/plugins/config/config_test.go b/tests/plugins/config/config_test.go index 79de2f59..b6063cec 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:6061"} + vp.Flags = []string{"rpc.listen=tcp://localhost: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:6061") + err = os.Setenv("SUPER_RPC_ENV", "tcp://localhost:36643") assert.NoError(t, err) vp := &config.Viper{} diff --git a/tests/plugins/config/plugin2.go b/tests/plugins/config/plugin2.go index 0fea9007..9639b170 100755 --- a/tests/plugins/config/plugin2.go +++ b/tests/plugins/config/plugin2.go @@ -37,7 +37,7 @@ func (f *Foo2) Serve() chan error { return errCh } - if allCfg.RPC.Listen != "tcp://localhost:6061" { + if allCfg.RPC.Listen != "tcp://localhost:36643" { errCh <- errors.E(op, errors.Str("RPC.Listen should be overwritten")) return errCh } |