Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
Signed-off-by: closetool <[email protected]>
  • Loading branch information
kilosonc committed Jul 18, 2023
1 parent 4dcac0a commit 5a3bcbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cluster/metrics/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ func Test(t *testing.T) {

strReader := strings.NewReader(`# HELP horizon_cluster_info A metric with a constant '1' value labeled by cluster, application, group, etc.
# TYPE horizon_cluster_info gauge
horizon_cluster_info{application="app1",cluster="cluster1",environment="dev",group="/group1",region="hz",template="javaapp"} 1
horizon_cluster_info{application="app1",cluster="cluster2",environment="dev",group="/group1",region="hz",template="javaapp"} 1
horizon_cluster_info{application="app1",cluster="cluster1",environment="dev",group="group1",region="hz",template="javaapp"} 1
horizon_cluster_info{application="app1",cluster="cluster2",environment="dev",group="group1",region="hz",template="javaapp"} 1
# HELP horizon_cluster_labels A metric with a constant '1' value labeled by cluster and tags
# TYPE horizon_cluster_labels gauge
horizon_cluster_labels{application="app1",cluster="cluster1",label_name="cluster1"} 1
Expand All @@ -126,8 +126,8 @@ horizon_cluster_labels{application="app1",cluster="cluster2",label_hello_world1=

strReader = strings.NewReader(`# HELP horizon_cluster_info A metric with a constant '1' value labeled by cluster, application, group, etc.
# TYPE horizon_cluster_info gauge
horizon_cluster_info{application="app1",cluster="cluster1",environment="dev",group="/group1",region="hz",template="javaapp"} 1
horizon_cluster_info{application="app1",cluster="cluster2",environment="dev",group="/group1",region="hz",template="javaapp"} 1
horizon_cluster_info{application="app1",cluster="cluster1",environment="dev",group="group1",region="hz",template="javaapp"} 1
horizon_cluster_info{application="app1",cluster="cluster2",environment="dev",group="group1",region="hz",template="javaapp"} 1
# HELP horizon_cluster_labels A metric with a constant '1' value labeled by cluster and tags
# TYPE horizon_cluster_labels gauge
horizon_cluster_labels{application="app1",cluster="cluster1",label_name="cluster1"} 1
Expand Down

0 comments on commit 5a3bcbb

Please sign in to comment.