mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 21:12:29 +08:00
sql: removes locale from test to mirror prod.
This commit is contained in:
@ -48,7 +48,7 @@ func TestDashboardProvisioningTest(t *testing.T) {
|
|||||||
|
|
||||||
So(len(query.Result), ShouldEqual, 1)
|
So(len(query.Result), ShouldEqual, 1)
|
||||||
So(query.Result[0].DashboardId, ShouldEqual, dashId)
|
So(query.Result[0].DashboardId, ShouldEqual, dashId)
|
||||||
So(query.Result[0].Updated, ShouldEqual, now)
|
So(query.Result[0].Updated.Unix(), ShouldEqual, now.Unix())
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -11,8 +11,8 @@ type TestDB struct {
|
|||||||
ConnStr string
|
ConnStr string
|
||||||
}
|
}
|
||||||
|
|
||||||
var TestDB_Sqlite3 = TestDB{DriverName: "sqlite3", ConnStr: ":memory:?_loc=Local"}
|
var TestDB_Sqlite3 = TestDB{DriverName: "sqlite3", ConnStr: ":memory:"}
|
||||||
var TestDB_Mysql = TestDB{DriverName: "mysql", ConnStr: "grafana:password@tcp(localhost:3306)/grafana_tests?collation=utf8mb4_unicode_ci&loc=Local"}
|
var TestDB_Mysql = TestDB{DriverName: "mysql", ConnStr: "grafana:password@tcp(localhost:3306)/grafana_tests?collation=utf8mb4_unicode_ci"}
|
||||||
var TestDB_Postgres = TestDB{DriverName: "postgres", ConnStr: "user=grafanatest password=grafanatest host=localhost port=5432 dbname=grafanatest sslmode=disable"}
|
var TestDB_Postgres = TestDB{DriverName: "postgres", ConnStr: "user=grafanatest password=grafanatest host=localhost port=5432 dbname=grafanatest sslmode=disable"}
|
||||||
|
|
||||||
func CleanDB(x *xorm.Engine) {
|
func CleanDB(x *xorm.Engine) {
|
||||||
|
Reference in New Issue
Block a user