Fix remaining tests to work with new Timestamp type.

Change-Id: Ib0fb4e0b714d723e08e83283fbe95233fd0f987a
This commit is contained in:
Julius Volz 2013-12-03 10:17:04 +01:00
parent 3ffd7c4a6c
commit 197e83f47e
3 changed files with 3 additions and 6 deletions

View File

@ -17,12 +17,11 @@ import (
"sort" "sort"
"strings" "strings"
"testing" "testing"
"time"
"github.com/prometheus/client_golang/model" "github.com/prometheus/client_golang/model"
) )
var testTime = time.Now() var testTime = model.Now()
type metricFamilyProcessorScenario struct { type metricFamilyProcessorScenario struct {
in string in string

View File

@ -19,13 +19,12 @@ import (
"path" "path"
"sort" "sort"
"testing" "testing"
"time"
"github.com/prometheus/client_golang/model" "github.com/prometheus/client_golang/model"
"github.com/prometheus/client_golang/test" "github.com/prometheus/client_golang/test"
) )
var test001Time = time.Now() var test001Time = model.Now()
type testProcessor001ProcessScenario struct { type testProcessor001ProcessScenario struct {
in string in string

View File

@ -20,13 +20,12 @@ import (
"runtime" "runtime"
"sort" "sort"
"testing" "testing"
"time"
"github.com/prometheus/client_golang/model" "github.com/prometheus/client_golang/model"
"github.com/prometheus/client_golang/test" "github.com/prometheus/client_golang/test"
) )
var test002Time = time.Now() var test002Time = model.Now()
type testProcessor002ProcessScenario struct { type testProcessor002ProcessScenario struct {
in string in string