From 58e2a31db8de12da60783d91d748008daed95159 Mon Sep 17 00:00:00 2001 From: Warren Fernandes Date: Thu, 15 Mar 2018 02:59:19 -0600 Subject: [PATCH] Cleans up test by removing unused function (#3969) --- rules/manager_test.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rules/manager_test.go b/rules/manager_test.go index 8202b6ba5..4ffb5373e 100644 --- a/rules/manager_test.go +++ b/rules/manager_test.go @@ -15,7 +15,6 @@ package rules import ( "context" - "fmt" "math" "sort" "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) { storage := testutil.NewStorage(t) defer storage.Close()