Cleans up test by removing unused function (#3969)

pull/3979/head
Warren Fernandes 7 years ago committed by Brian Brazil
parent e87c6c8b28
commit 58e2a31db8

@ -15,7 +15,6 @@ package rules
import ( import (
"context" "context"
"fmt"
"math" "math"
"sort" "sort"
"testing" "testing"
@ -163,14 +162,6 @@ func TestAlertingRule(t *testing.T) {
} }
} }
func annotateWithTime(lines []string, ts time.Time) []string {
annotatedLines := []string{}
for _, line := range lines {
annotatedLines = append(annotatedLines, fmt.Sprintf(line, timestamp.FromTime(ts)))
}
return annotatedLines
}
func TestStaleness(t *testing.T) { func TestStaleness(t *testing.T) {
storage := testutil.NewStorage(t) storage := testutil.NewStorage(t)
defer storage.Close() defer storage.Close()

Loading…
Cancel
Save