Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
b60b6690
Commit
b60b6690
authored
Feb 13, 2018
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql: removes locale from test to mirror prod.
parent
fc371af4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pkg/services/sqlstore/dashboard_provisioning_test.go
+1
-1
pkg/services/sqlstore/sqlutil/sqlutil.go
+2
-2
No files found.
pkg/services/sqlstore/dashboard_provisioning_test.go
View file @
b60b6690
...
...
@@ -48,7 +48,7 @@ func TestDashboardProvisioningTest(t *testing.T) {
So
(
len
(
query
.
Result
),
ShouldEqual
,
1
)
So
(
query
.
Result
[
0
]
.
DashboardId
,
ShouldEqual
,
dashId
)
So
(
query
.
Result
[
0
]
.
Updated
,
ShouldEqual
,
now
)
So
(
query
.
Result
[
0
]
.
Updated
.
Unix
(),
ShouldEqual
,
now
.
Unix
()
)
})
})
})
...
...
pkg/services/sqlstore/sqlutil/sqlutil.go
View file @
b60b6690
...
...
@@ -11,8 +11,8 @@ type TestDB struct {
ConnStr
string
}
var
TestDB_Sqlite3
=
TestDB
{
DriverName
:
"sqlite3"
,
ConnStr
:
":memory:
?_loc=Local
"
}
var
TestDB_Mysql
=
TestDB
{
DriverName
:
"mysql"
,
ConnStr
:
"grafana:password@tcp(localhost:3306)/grafana_tests?collation=utf8mb4_unicode_ci
&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"
}
var
TestDB_Postgres
=
TestDB
{
DriverName
:
"postgres"
,
ConnStr
:
"user=grafanatest password=grafanatest host=localhost port=5432 dbname=grafanatest sslmode=disable"
}
func
CleanDB
(
x
*
xorm
.
Engine
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment