From 197e83f47e9c2f24a0f38edc987f81f22659254d Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Tue, 3 Dec 2013 10:17:04 +0100 Subject: [PATCH] Fix remaining tests to work with new Timestamp type. Change-Id: Ib0fb4e0b714d723e08e83283fbe95233fd0f987a --- extraction/metricfamilyprocessor_test.go | 3 +-- extraction/processor0_0_1_test.go | 3 +-- extraction/processor0_0_2_test.go | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/extraction/metricfamilyprocessor_test.go b/extraction/metricfamilyprocessor_test.go index 54b8003..6c47387 100644 --- a/extraction/metricfamilyprocessor_test.go +++ b/extraction/metricfamilyprocessor_test.go @@ -17,12 +17,11 @@ import ( "sort" "strings" "testing" - "time" "github.com/prometheus/client_golang/model" ) -var testTime = time.Now() +var testTime = model.Now() type metricFamilyProcessorScenario struct { in string diff --git a/extraction/processor0_0_1_test.go b/extraction/processor0_0_1_test.go index 2e1b337..1df5706 100644 --- a/extraction/processor0_0_1_test.go +++ b/extraction/processor0_0_1_test.go @@ -19,13 +19,12 @@ import ( "path" "sort" "testing" - "time" "github.com/prometheus/client_golang/model" "github.com/prometheus/client_golang/test" ) -var test001Time = time.Now() +var test001Time = model.Now() type testProcessor001ProcessScenario struct { in string diff --git a/extraction/processor0_0_2_test.go b/extraction/processor0_0_2_test.go index 4adf153..cededbf 100644 --- a/extraction/processor0_0_2_test.go +++ b/extraction/processor0_0_2_test.go @@ -20,13 +20,12 @@ import ( "runtime" "sort" "testing" - "time" "github.com/prometheus/client_golang/model" "github.com/prometheus/client_golang/test" ) -var test002Time = time.Now() +var test002Time = model.Now() type testProcessor002ProcessScenario struct { in string