mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 01:15:46 +08:00
FIxed syntaxis mistake unixEpochNanoFrom and unixEpochNanoTo
This commit is contained in:
@ -125,14 +125,14 @@ func TestMacroEngine(t *testing.T) {
|
||||
sql, err := engine.Interpolate(query, timeRange, "select $__unixEpochNanoFrom()")
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
So(sql, ShouldEqual, fmt.Sprintf("select '%d'", from.UnixNano()))
|
||||
So(sql, ShouldEqual, fmt.Sprintf("select %d", from.UnixNano()))
|
||||
})
|
||||
|
||||
Convey("interpolate __unixEpochNanoTo function", func() {
|
||||
sql, err := engine.Interpolate(query, timeRange, "select $__unixEpochNanoTo()")
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
So(sql, ShouldEqual, fmt.Sprintf("select '%d'", to.UnixNano()))
|
||||
So(sql, ShouldEqual, fmt.Sprintf("select %d", to.UnixNano()))
|
||||
})
|
||||
|
||||
Convey("interpolate __unixEpochGroup function", func() {
|
||||
|
Reference in New Issue
Block a user