summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-30 18:16:05 +0300
committerWolfy-J <[email protected]>2018-09-30 18:16:05 +0300
commit54a105ead09c30a56c8caa6dde21828d50cc3e85 (patch)
treec97c02096d07041f247a8c37272c0d5f4f97f57f /service
parent291b1464ee63c235dc6c86ac50225d326cd5cc54 (diff)
new env values
Diffstat (limited to 'service')
-rw-r--r--service/rpc/service_test.go2
-rw-r--r--service/static/config_test.go7
2 files changed, 4 insertions, 5 deletions
diff --git a/service/rpc/service_test.go b/service/rpc/service_test.go
index 467cbe3f..0278d287 100644
--- a/service/rpc/service_test.go
+++ b/service/rpc/service_test.go
@@ -91,5 +91,5 @@ func TestSetEnv(t *testing.T) {
assert.True(t, ok)
v, _ := e.GetEnv()
- assert.Equal(t, "tcp://localhost:9018", v["rr_rpc"])
+ assert.Equal(t, "tcp://localhost:9018", v["RR_RPC"])
}
diff --git a/service/static/config_test.go b/service/static/config_test.go
index d36726c2..e3fa8d16 100644
--- a/service/static/config_test.go
+++ b/service/static/config_test.go
@@ -36,8 +36,7 @@ func TestConfig_Forbids(t *testing.T) {
}
func TestConfig_Valid(t *testing.T) {
- assert.NoError(t, (&Config{Enable: true, Dir: "./"}).Valid())
- assert.Error(t, (&Config{Enable: true, Dir: "./config.go"}).Valid())
- assert.NoError(t, (&Config{Dir: "./dir/"}).Valid())
- assert.Error(t, (&Config{Enable: true, Dir: "./dir/"}).Valid())
+ assert.NoError(t, (&Config{Dir: "./"}).Valid())
+ assert.Error(t, (&Config{Dir: "./config.go"}).Valid())
+ assert.Error(t, (&Config{Dir: "./dir/"}).Valid())
}