summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())
}