We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd055af commit 89b8664Copy full SHA for 89b8664
1 file changed
metrics/multinode_test.go
@@ -28,6 +28,22 @@ func TestMultiNodeMetrics_RecordNodeStates(t *testing.T) {
28
)
29
}
30
31
+func TestMultiNodeMetrics_RecordNodeClientVersion(t *testing.T) {
32
+ m := setupTestMultiNodeMetrics(t)
33
+ ctx := context.Background()
34
+
35
+ m.RecordNodeClientVersion(ctx, "test-node-1", "rpc-1.2.3")
36
37
+ value := testutil.ToFloat64(promNodeClientVersion.WithLabelValues(
38
+ "test-network",
39
+ "1",
40
+ "test-node-1",
41
+ "rpc-1.2.3",
42
+ ))
43
44
+ require.Equal(t, float64(1), value)
45
+}
46
47
func TestMultiNodeMetrics_Verifies(t *testing.T) {
48
m := setupTestMultiNodeMetrics(t)
49
ctx := context.Background()
0 commit comments