diff --git a/scrape/helpers_test.go b/scrape/helpers_test.go index fcef695385..cc4cb088c7 100644 --- a/scrape/helpers_test.go +++ b/scrape/helpers_test.go @@ -254,7 +254,7 @@ func (a *collectResultAppender) String() string { } // protoMarshalDelimited marshals a MetricFamily into a delimited -// Prometheus proto exposition format bytes (known as 'encoding=delimited`) +// Prometheus proto exposition format bytes (known as `encoding=delimited`) // // See also https://eli.thegreenplace.net/2011/08/02/length-prefix-framing-for-protocol-buffers func protoMarshalDelimited(t *testing.T, mf *dto.MetricFamily) []byte { diff --git a/tsdb/db_test.go b/tsdb/db_test.go index 97e23e0c3d..2c9bfe6640 100644 --- a/tsdb/db_test.go +++ b/tsdb/db_test.go @@ -2148,7 +2148,7 @@ func TestDB_LabelNames(t *testing.T) { sampleLabels1 [][2]string // For checking head and disk separately. // To test Head+Disk, sampleLabels2 should have // at least 1 unique label name which is not in sampleLabels1. - sampleLabels2 [][2]string // // For checking head and disk together. + sampleLabels2 [][2]string // For checking head and disk together. exp1 []string // after adding sampleLabels1. exp2 []string // after adding sampleLabels1 and sampleLabels2. }{ @@ -9414,7 +9414,7 @@ func TestGenerateCompactionDelay(t *testing.T) { type blockedResponseRecorder struct { r *httptest.ResponseRecorder - // writeblocked is used to block writing until the test wants it to resume. + // writeBlocked is used to block writing until the test wants it to resume. writeBlocked chan struct{} // writeStarted is closed by blockedResponseRecorder to signal that writing has started. writeStarted chan struct{}