mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 07:26:31 +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 !same {
|
||||||
if updateSnapshotFlag {
|
if updateSnapshotFlag {
|
||||||
t.Log("updating snapshot results")
|
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()
|
t.FailNow()
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user