Skip to content

Commit

Permalink
Fix spelling and comment
Browse files Browse the repository at this point in the history
Signed-off-by: David Leadbeater <[email protected]>
  • Loading branch information
dgl committed May 18, 2021
1 parent 43e3318 commit c5ec238
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions storage/diskmetricstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,9 +927,9 @@ func TestAddDeletePersistRestore(t *testing.T) {
newPushFailedTimestampGauge(grouping5, time.Time{}).Metric[0],
newPushFailedTimestampGauge(grouping6, time.Time{}).Metric[0],
)
mfLaballed := proto.Clone(mfUnlabelled).(*dto.MetricFamily)
// sanitizeLabels should add these labels to the unlabelled metric
mfLaballed.Metric[0].Label = []*dto.LabelPair{
mfLabelled := proto.Clone(mfUnlabelled).(*dto.MetricFamily)
// SanitizeLabels should add these labels to the unlabelled metric.
mfLabelled.Metric[0].Label = []*dto.LabelPair{
{
Name: proto.String("instance"),
Value: proto.String("instance1"),
Expand All @@ -940,7 +940,7 @@ func TestAddDeletePersistRestore(t *testing.T) {
},
}
if err := checkMetricFamilies(
dms, mf1a, mf2, mf4, mfLaballed,
dms, mf1a, mf2, mf4, mfLabelled,
pushTimestamp, pushFailedTimestamp,
); err != nil {
t.Error(err)
Expand Down

0 comments on commit c5ec238

Please sign in to comment.