Chore: Fix tests for Go 1.15 (#26957)

* Chore: Fix tests for Go 1.15
This commit is contained in:
Arve Knudsen
2020-08-12 17:45:03 +02:00
committed by GitHub
parent a8f57b2ffd
commit 1698c74ec1
4 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -828,7 +828,7 @@ func TestDashboardApiEndpoint(t *testing.T) {
bus.AddHandler("test", func(query *models.GetDashboardVersionQuery) error {
query.Result = &models.DashboardVersion{
Data: simplejson.NewFromAny(map[string]interface{}{
"title": "Dash" + string(query.DashboardId),
"title": fmt.Sprintf("Dash%d", query.DashboardId),
}),
}
return nil