Skip to content

Commit

Permalink
Add test for metrics[2] content
Browse files Browse the repository at this point in the history
  • Loading branch information
bzed committed Feb 7, 2024
1 parent 0d93b24 commit 0b3367c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestWriteJSONNonleafRows(t *testing.T) {
if len(metrics) != 3 {
t.Fatalf("Wrong metrics slice length = %d: %s", len(metrics), metrics)
}
if metrics[0] != "testing.leaf" || metrics[1] != "testing.leaf.node" {
if metrics[0] != "testing.leaf" || metrics[1] != "testing.leaf.node" || metrics[2] != "testing.\"broken\".node" {
t.Fatalf("Wrong metrics contents: %s", metrics)
}
}
Expand Down

0 comments on commit 0b3367c

Please sign in to comment.