mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 03:12:13 +08:00
Review tsdb protobuf contract
This commit is contained in:
@ -16,7 +16,7 @@ func TestTimeRange(t *testing.T) {
|
||||
tr := TimeRange{
|
||||
From: "5m",
|
||||
To: "now",
|
||||
Now: now,
|
||||
now: now,
|
||||
}
|
||||
|
||||
Convey("5m ago ", func() {
|
||||
@ -39,7 +39,7 @@ func TestTimeRange(t *testing.T) {
|
||||
tr := TimeRange{
|
||||
From: "5h",
|
||||
To: "now-10m",
|
||||
Now: now,
|
||||
now: now,
|
||||
}
|
||||
|
||||
Convey("5h ago ", func() {
|
||||
@ -65,7 +65,7 @@ func TestTimeRange(t *testing.T) {
|
||||
tr := TimeRange{
|
||||
From: "1474973725473",
|
||||
To: "1474975757930",
|
||||
Now: now,
|
||||
now: now,
|
||||
}
|
||||
|
||||
res, err := tr.ParseFrom()
|
||||
@ -82,7 +82,7 @@ func TestTimeRange(t *testing.T) {
|
||||
tr := TimeRange{
|
||||
From: "asdf",
|
||||
To: "asdf",
|
||||
Now: now,
|
||||
now: now,
|
||||
}
|
||||
|
||||
_, err = tr.ParseFrom()
|
||||
|
Reference in New Issue
Block a user