mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 06:02:24 +08:00
refactor(): refactoring json usage
This commit is contained in:
@ -23,7 +23,7 @@ func TestPluginDashboards(t *testing.T) {
|
||||
bus.AddHandler("test", func(query *m.GetDashboardQuery) error {
|
||||
if query.Slug == "nginx-connections" {
|
||||
dash := m.NewDashboard("Nginx Connections")
|
||||
dash.Data["revision"] = "1.1"
|
||||
dash.Data.Set("revision", "1.1")
|
||||
query.Result = dash
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user