summaryrefslogtreecommitdiff
path: root/service/metrics/rpc_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-06-27 14:42:39 +0300
committerWolfy-J <[email protected]>2019-06-27 14:42:39 +0300
commit39a2eac13074a209d17f03930223542ff0af8766 (patch)
treef74d5912e38351db09b4d69fec6a4e316d96100a /service/metrics/rpc_test.go
parent7606e1cfddd26d2848923dc1079d9fb2858e84f1 (diff)
more tests
Diffstat (limited to 'service/metrics/rpc_test.go')
-rw-r--r--service/metrics/rpc_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/service/metrics/rpc_test.go b/service/metrics/rpc_test.go
index da991b34..74b067c5 100644
--- a/service/metrics/rpc_test.go
+++ b/service/metrics/rpc_test.go
@@ -616,3 +616,20 @@ func Test_Add_RPC_MetricError_2(t *testing.T) {
Value: 100.0,
}, &ok))
}
+
+func Test_Add_RPC_MetricError_3(t *testing.T) {
+ client, c := setup(
+ t,
+ `"user_gauge":{
+ "type": "histogram",
+ "labels": ["type", "section"]
+ }`,
+ )
+ defer c.Stop()
+
+ var ok bool
+ assert.Error(t, client.Call("metrics.Add", Metric{
+ Name: "user_gauge",
+ Value: 100.0,
+ }, &ok))
+}