forked from mirror/client_golang
Fix remaining tests to work with new Timestamp type.
Change-Id: Ib0fb4e0b714d723e08e83283fbe95233fd0f987a
This commit is contained in:
parent
3ffd7c4a6c
commit
197e83f47e
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue