Skip to content

Commit

Permalink
Fix spelling in test
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 00f561a commit 43e3318
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage/diskmetricstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ var (
},
},
}
mfUnlaballed = &dto.MetricFamily{
mfUnlabelled = &dto.MetricFamily{
Name: proto.String("mf_unlabelled"),
Help: proto.String("Metric with no labels to check sanitizeLabels."),
Type: dto.MetricType_GAUGE.Enum(),
Expand Down Expand Up @@ -912,7 +912,7 @@ func TestAddDeletePersistRestore(t *testing.T) {
dms.SubmitWriteRequest(WriteRequest{
Labels: grouping6,
Timestamp: ts5,
MetricFamilies: testutil.MetricFamiliesMap(mfUnlaballed),
MetricFamilies: testutil.MetricFamiliesMap(mfUnlabelled),
})
if err := dms.Shutdown(); err != nil {
t.Fatal(err)
Expand All @@ -927,7 +927,7 @@ func TestAddDeletePersistRestore(t *testing.T) {
newPushFailedTimestampGauge(grouping5, time.Time{}).Metric[0],
newPushFailedTimestampGauge(grouping6, time.Time{}).Metric[0],
)
mfLaballed := proto.Clone(mfUnlaballed).(*dto.MetricFamily)
mfLaballed := proto.Clone(mfUnlabelled).(*dto.MetricFamily)
// sanitizeLabels should add these labels to the unlabelled metric
mfLaballed.Metric[0].Label = []*dto.LabelPair{
{
Expand Down

0 comments on commit 43e3318

Please sign in to comment.