mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Open Heatmap: update plugin snapshot testdata (#50747)
This commit is contained in:
parent
262ee5219e
commit
c5547fde59
@ -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
Loading…
Reference in New Issue
Block a user