mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 02:42:22 +08:00
Open Heatmap: update plugin snapshot testdata (#50747)
This commit is contained in:
@ -95,7 +95,11 @@ func TestPlugins(t *testing.T) {
|
||||
if !same {
|
||||
if updateSnapshotFlag {
|
||||
t.Log("updating snapshot results")
|
||||
updateRespSnapshot(t, tc.expRespPath, string(b))
|
||||
var prettyJSON bytes.Buffer
|
||||
if err := json.Indent(&prettyJSON, b, "", " "); err != nil {
|
||||
t.FailNow()
|
||||
}
|
||||
updateRespSnapshot(t, tc.expRespPath, prettyJSON.String())
|
||||
}
|
||||
t.FailNow()
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user